]> git.pld-linux.org Git - packages/python-fields.git/commitdiff
- enhanced tests patch for current setuptools/pytest
authorJakub Bogusz <qboosh@pld-linux.org>
Tue, 15 Mar 2022 21:20:36 +0000 (22:20 +0100)
committerJakub Bogusz <qboosh@pld-linux.org>
Tue, 15 Mar 2022 21:20:36 +0000 (22:20 +0100)
- disable other pytest plugins

python-fields-tests.patch
python-fields.spec

index 6f3b8375726295db5b37af3b96ec1b824ea77850..dabd49c793f1f34538cb217f76d28cca4c71a038 100644 (file)
@@ -1,5 +1,14 @@
 --- fields-5.0.0/setup.cfg.orig        2016-04-13 22:51:43.000000000 +0200
 +++ fields-5.0.0/setup.cfg     2018-08-02 05:39:20.335850460 +0200
+@@ -8,7 +8,7 @@
+ max-line-length = 140
+ exclude = tests/*,*/migrations/*,*/south_migrations/*
+-[pytest]
++[tool:pytest]
+ norecursedirs = 
+       .git
+       .tox
 @@ -31,7 +31,6 @@
        --doctest-modules
        --doctest-glob=\*.rst
index e5ac224bde8f5437b5c8664296a9f7d44d87d330..415f457b11733b029ac1f4c318ee48de935242ec 100644 (file)
@@ -106,6 +106,8 @@ Dokumentacja API moduĊ‚u Pythona fields.
 %py_build
 
 %if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTEST_PLUGINS="pytest_benchmark.plugin" \
 PYTHONPATH=$(pwd)/src \
 %{__python} -m pytest tests
 %endif
@@ -115,6 +117,8 @@ PYTHONPATH=$(pwd)/src \
 %py3_build
 
 %if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTEST_PLUGINS="pytest_benchmark.plugin" \
 PYTHONPATH=$(pwd)/src \
 %{__python3} -m pytest tests
 %endif
This page took 0.254292 seconds and 4 git commands to generate.