diff --git a/environment.devenv.yml b/environment.devenv.yml index d9ab9b1..22c6b0a 100644 --- a/environment.devenv.yml +++ b/environment.devenv.yml @@ -23,6 +23,7 @@ dependencies: - pytest-selenium >=4.0.2 - pytest-timeout - selenium >=4.10.0 + - setuptools # TEST TO FIX BUILD TIMEOUT {% if sys.platform != 'win32' %} - pytest-xvfb {% endif %} diff --git a/tasks.py b/tasks.py index b404460..b277a57 100644 --- a/tasks.py +++ b/tasks.py @@ -155,7 +155,7 @@ def docs(ctx, python_version=None): @invoke.task def test(ctx): print_message("test".format(), color=Fore.BLUE, bright=True) - cmd = "pytest --cov=qmxgraph --timeout=30 -v --durations=10 --color=yes" + cmd = "pytest --cov=qmxgraph --timeout=30 -v --durations=10 --color=yes -x" import subprocess diff --git a/tests/conftest.py b/tests/conftest.py index f659a51..472a482 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -254,6 +254,7 @@ def pytest_collection_modifyitems(items): See pytest-rerunfailures plugin for more information. """ + return import os if os.environ.get("CI", "false") != "true":