aboutsummaryrefslogtreecommitdiff
path: root/src/argaze.test/ArGazeProject.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/argaze.test/ArGazeProject.py')
-rw-r--r--src/argaze.test/ArGazeProject.py34
1 files changed, 0 insertions, 34 deletions
diff --git a/src/argaze.test/ArGazeProject.py b/src/argaze.test/ArGazeProject.py
deleted file mode 100644
index 8e449bf..0000000
--- a/src/argaze.test/ArGazeProject.py
+++ /dev/null
@@ -1,34 +0,0 @@
-#!/usr/bin/env python
-
-import unittest
-import os
-
-from argaze import ArGazeProject
-
-import numpy
-
-class TestArGazeProjectClass(unittest.TestCase):
- """Test ArGazeProject class."""
-
- def test_from_json(self):
- """Test ArGazeProject creation from json file."""
-
- # Edit project file path
- current_directory = os.path.dirname(os.path.abspath(__file__))
- json_filepath = os.path.join(current_directory, 'utils/project.json')
-
- # Load project
- argaze_project = ArGazeProject.ArGazeProject.from_json(json_filepath)
-
- # Check project meta data
- self.assertEqual(argaze_project.name, "TestProject")
-
- # Check ArUco camera
- self.assertEqual(argaze_project.aruco_camera.rms, 1.0)
- self.assertIsNone(numpy.testing.assert_array_equal(argaze_project.aruco_camera.dimensions, [1920, 1080]))
- self.assertIsNone(numpy.testing.assert_array_equal(argaze_project.aruco_camera.K, [[1.0, 0.0, 1.0], [0.0, 1.0, 1.0], [0.0, 0.0, 1.0]]))
- self.assertIsNone(numpy.testing.assert_array_equal(argaze_project.aruco_camera.D, [-1.0, -0.5, 0.0, 0.5, 1.0]))
-
-if __name__ == '__main__':
-
- unittest.main() \ No newline at end of file