Rewrite invalid imports checker to Python

Makes it consistent with other checkers we already have
This commit is contained in:
Nino van Hooff 2020-01-20 16:22:02 +01:00
parent 66105e8a3a
commit b830a6faa3
3 changed files with 67 additions and 11 deletions

View file

@ -56,6 +56,13 @@ function(cura_add_test)
endif()
endfunction()
#Add test for whether the shortcut alt-keys are unique in every translation.
add_test(
NAME "invalid-imports"
COMMAND ${Python3_EXECUTABLE} scripts/check_invalid_imports.py
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
)
cura_add_test(NAME pytest-main DIRECTORY ${CMAKE_SOURCE_DIR}/tests PYTHONPATH "${CMAKE_SOURCE_DIR}|${URANIUM_DIR}")
file(GLOB_RECURSE _plugins plugins/*/__init__.py)