mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-12-05 16:51:12 -07:00
Rewrite invalid imports checker to Python
Makes it consistent with other checkers we already have
This commit is contained in:
parent
66105e8a3a
commit
b830a6faa3
3 changed files with 67 additions and 11 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue