localize mathutils dependency in tests #3895

replaced shapebuilder with general ifcopenshell code in `test_add_boolean` (the only place besides `test_shape_builder` where it was used), that way mathutils dependency in tests is localized only to `test_shape_builder.py`.

added test-safe option to makefile, so github workflow would ignore `test_shape_builder` tests for now and it wouldn't interrupt the entire workflow
This commit is contained in:
Andrej730
2023-10-17 15:36:10 +05:00
parent 578e15adb2
commit 3f018a4195
4 changed files with 23 additions and 10 deletions
+6
View File
@@ -68,6 +68,12 @@ endif
test:
pytest -p no:pytest-blender test
# safe version of tests without mathutils dependency
# for tests to work for github workflow with python <3.10 #3895
.PHONY: test-safe
test-safe:
pytest -p no:pytest-blender test --ignore=test/util/test_shape_builder.py
.PHONY: build-ids-docs
build-ids-docs:
mkdir -p test/build