[packages/python3-openapi-spec-validator] - disable network tests
qboosh
qboosh at pld-linux.org
Tue Dec 30 20:42:30 CET 2025
commit f0b6b083917fb724408bebc70c52e502ece31c91
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Tue Dec 30 20:43:00 2025 +0100
- disable network tests
python3-openapi-spec-validator.spec | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/python3-openapi-spec-validator.spec b/python3-openapi-spec-validator.spec
index a72edb1..696146e 100644
--- a/python3-openapi-spec-validator.spec
+++ b/python3-openapi-spec-validator.spec
@@ -55,9 +55,10 @@ Celem walidatora jest sprawdzanie pełnej zgodności ze specyfikacją.
%py3_build_pyproject
%if %{with tests}
+# TestRemoteOpenAPIv*Validator and TestRemoteValidate*SpecUrl tests require network
PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
PYTEST_PLUGINS=pytest_cov.plugin \
-%{__python3} -m pytest tests
+%{__python3} -m pytest tests -k 'not (TestRemoteOpenAPIv30Validator or TestRemoteOpenAPIv31Validator or TestRemoteValidatev2SpecUrl or TestRemoteValidatev30SpecUrl)'
%endif
%install
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-openapi-spec-validator.git/commitdiff/f0b6b083917fb724408bebc70c52e502ece31c91
More information about the pld-cvs-commit
mailing list