From 1d2e0a4974d7f305ac4754397a943d6dc176df22 Mon Sep 17 00:00:00 2001 From: Francois Blackburn Date: Mon, 14 Aug 2023 15:08:11 -0400 Subject: [PATCH] test: exclude some helper methods from nosetests why: mark_logs_test_start helper methods is executed by nosetests --- integration_tests/Makefile | 4 +++- tox.ini | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/integration_tests/Makefile b/integration_tests/Makefile index 9e8fcf1fe..af50b5b72 100644 --- a/integration_tests/Makefile +++ b/integration_tests/Makefile @@ -26,7 +26,9 @@ build-provd: docker build -t wazoplatform/wazo-provd $(PROVD_DIR) test: - nosetests -x + # Explicit match to avoid to include AssetLaunchingTestCase helper methods + # This constraint must be removed when tests will be migrated to pytest + nosetests --match '^[Tt]est' -x egg-info: cd .. && python setup.py egg_info diff --git a/tox.ini b/tox.ini index 738b8f63e..b709ea071 100644 --- a/tox.ini +++ b/tox.ini @@ -54,7 +54,9 @@ passenv = MANAGE_DB_DIR commands = make test-setup - nosetests -v {posargs} +# Explicit match to avoid to include AssetLaunchingTestCase helper methods +# This constraint must be removed when tests will be migrated to pytest + nosetests --match '^[Tt]est' -v {posargs} allowlist_externals = make