diff --git a/python/CMakeLists.txt b/python/CMakeLists.txt index a5fdc80a6..4254a21c6 100644 --- a/python/CMakeLists.txt +++ b/python/CMakeLists.txt @@ -166,5 +166,6 @@ add_custom_target( COMMAND ${CMAKE_COMMAND} -E env # add package to python path so no need to install "PYTHONPATH=${GTSAM_PYTHON_BUILD_DIRECTORY}/$ENV{PYTHONPATH}" - ${PYTHON_EXECUTABLE} -m unittest discover -s "${GTSAM_PYTHON_BUILD_DIRECTORY}/gtsam/tests" - DEPENDS ${GTSAM_PYTHON_DEPENDENCIES}) + ${PYTHON_EXECUTABLE} -m unittest discover -v -s . + DEPENDS ${GTSAM_PYTHON_DEPENDENCIES} + WORKING_DIRECTORY "${GTSAM_PYTHON_BUILD_DIRECTORY}/gtsam/tests") diff --git a/python/gtsam/tests/test_basis.py b/python/gtsam/tests/test_basis.py index 8d4039249..3af0a87f1 100644 --- a/python/gtsam/tests/test_basis.py +++ b/python/gtsam/tests/test_basis.py @@ -18,10 +18,12 @@ from gtsam.symbol_shorthand import B class TestBasis(GtsamTestCase): - """Tests Basis module python bindings + """ + Tests Basis module python bindings. """ def test_fit_basis(self): - """Tests FitBasis python binding for FourierBasis, Chebyshev1Basis, Chebyshev2Basis, and + """ + Tests FitBasis python binding for FourierBasis, Chebyshev1Basis, Chebyshev2Basis, and Chebyshev2. It tests FitBasis by fitting to a ground-truth function that can be represented exactly in the basis, then checking that the regression (fit result) matches the function. For the