From 8523bb317a3e162dc83868598e462d3b0b331792 Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Thu, 1 Aug 2024 16:27:58 +0500 Subject: [PATCH] bcf, bsdd - add "make test" --- src/bcf/Makefile | 4 ++++ src/bsdd/Makefile | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/bcf/Makefile b/src/bcf/Makefile index daf7696155..ef03ba0d43 100644 --- a/src/bcf/Makefile +++ b/src/bcf/Makefile @@ -33,6 +33,10 @@ models: cd src && xsdata generate -p bcf.v2.model --unnest-classes --kw-only --slots -ds Google bcf/v2/xsd cd src && xsdata generate -p bcf.v3.model --unnest-classes --kw-only --slots -ds Google bcf/v3/xsd +.PHONY: test +test: + pytest -p no:pytest-blender tests + # .PHONY # api: # openapi-python-client generate --url https://api.swaggerhub.com/apis/buildingSMART/BCF/3.0 diff --git a/src/bsdd/Makefile b/src/bsdd/Makefile index 8eaf0bbf83..c4cce9bbe1 100644 --- a/src/bsdd/Makefile +++ b/src/bsdd/Makefile @@ -22,4 +22,6 @@ include ../common.mk .PHONY: test test: - pytest -p no:pytest-blender test +# Using python -m pytest vs just using pytest is important here. +# As just using pytest does not add current directory to PATH. + python -m pytest -p no:pytest-blender tests