[packages/python3-betamax] - run just tests/unit by default, the others require network connection
qboosh
qboosh at pld-linux.org
Sun Nov 30 12:16:41 CET 2025
commit acc74e11545e3aa840369251d8742c1a740144e8
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Nov 30 12:16:51 2025 +0100
- run just tests/unit by default, the others require network connection
python3-betamax.spec | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/python3-betamax.spec b/python3-betamax.spec
index 1c3dc2d..f5f0b42 100644
--- a/python3-betamax.spec
+++ b/python3-betamax.spec
@@ -1,7 +1,8 @@
#
# Conditional build:
-%bcond_without doc # Sphinx documentation
-%bcond_without tests # unit+integration tests
+%bcond_without doc # Sphinx documentation
+%bcond_without tests # unit tests
+%bcond_with tests_net # integration+regression tests, network required
Summary: VCR imitation for python-requests
Summary(pl.UTF-8): Imitacja VCR dla python-requests
@@ -59,7 +60,7 @@ Dokumentacja API modułu Pythona betamax.
PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
PYTEST_PLUGINS="betamax.fixtures.pytest" \
PYTHONPATH=$(pwd)/src \
-%{__python3} -m pytest tests -k 'not test_records_new_interaction'
+%{__python3} -m pytest tests%{!?with_tests_net:/unit} -k 'not test_records_new_interaction'
%endif
%if %{with doc}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-betamax.git/commitdiff/acc74e11545e3aa840369251d8742c1a740144e8
More information about the pld-cvs-commit
mailing list