Commit aa8c899d authored by Jorrit Schaap's avatar Jorrit Schaap

TMSS-163: only add tests if python modules were found

parent 4e56f404
......@@ -6,6 +6,7 @@ lofar_find_package(Python 3.4 REQUIRED)
include(PythonInstall)
include(FindPythonModule)
find_python_module(jsonschema)
find_python_module(psycopg2)
set(_py_files
......
......@@ -27,7 +27,14 @@ IF(BUILD_TESTING)
lofar_add_test(t_methodtrigger)
lofar_add_test(t_util)
lofar_add_test(t_test_utils)
lofar_add_test(t_json_utils)
lofar_add_test(t_cep4_utils)
lofar_add_test(t_postgres)
IF(PYTHON_JSONSCHEMA)
lofar_add_test(t_json_utils)
ENDIF()
IF(PYTHON_PSYCOPG2 AND PYTHON_TESTING.POSTGRESQL)
lofar_add_test(t_postgres)
ENDIF()
ENDIF()
\ No newline at end of file
Markdown is supported
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