From cc51cabf851672bed950bca93dc4d9ef558f7a9d Mon Sep 17 00:00:00 2001 From: JensDiemer Date: Tue, 29 Dec 2020 11:42:34 +0100 Subject: [PATCH] pass existing pytest arguments --- django_ynh/pytest_helper.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/django_ynh/pytest_helper.py b/django_ynh/pytest_helper.py index a806545..83b6358 100644 --- a/django_ynh/pytest_helper.py +++ b/django_ynh/pytest_helper.py @@ -32,7 +32,7 @@ def run_pytest(django_settings_path, destination): import pytest - # collect only project tests: - sys.argv = [__file__, str(test_path)] + # collect only project tests and pass existing pytest arguments: + sys.argv = [__file__, str(test_path)] + sys.argv[1:] raise SystemExit(pytest.console_main())