Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorNino van Hooff <ninovanhooff@gmail.com>2020-01-20 18:22:02 +0300
committerNino van Hooff <ninovanhooff@gmail.com>2020-01-20 18:24:26 +0300
commitb830a6faa3f83814b795fdca41bb73b90e48ac68 (patch)
tree41d5744cfe4383af733bb10c4d07e4c7460ed337 /cmake
parent66105e8a3a8cfc54410d57a48eb0bfc81715417f (diff)
Rewrite invalid imports checker to Python
Makes it consistent with other checkers we already have
Diffstat (limited to 'cmake')
-rw-r--r--cmake/CuraTests.cmake7
1 files changed, 7 insertions, 0 deletions
diff --git a/cmake/CuraTests.cmake b/cmake/CuraTests.cmake
index b1d3e0ddc4..c76019d310 100644
--- a/cmake/CuraTests.cmake
+++ b/cmake/CuraTests.cmake
@@ -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)