Commit 3998459a authored by Olivier Stasse's avatar Olivier Stasse
Browse files

[unitTest] Add python unit test.

parent 6afcb39c
Pipeline #7550 failed with stage
in 44 minutes and 44 seconds
...@@ -160,3 +160,7 @@ FOREACH(test ${tests}) ...@@ -160,3 +160,7 @@ FOREACH(test ${tests})
ENDIF(UNIX) ENDIF(UNIX)
ENDFOREACH(test) ENDFOREACH(test)
IF(BUILD_PYTHON_INTERFACE)
ADD_SUBDIRECTORY(python)
ENDIF(BUILD_PYTHON_INTERFACE)
SET(${PROJECT_NAME}_PYTHON_TESTS
op-point-modifier
)
FOREACH(TEST ${${PROJECT_NAME}_PYTHON_TESTS})
ADD_PYTHON_UNIT_TEST("py-${TEST}" "unitTesting/python/${TEST}.py" "python")
ENDFOREACH(TEST ${${PROJECT_NAME}_PYTHON_TESTS})
...@@ -168,3 +168,5 @@ class OpPointModifierTest(unittest.TestCase): ...@@ -168,3 +168,5 @@ class OpPointModifierTest(unittest.TestCase):
if __name__ == '__main__': if __name__ == '__main__':
unittest.main() unittest.main()
np.testing.assert_equal(stop,0)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment