pass existing pytest arguments

This commit is contained in:
JensDiemer 2020-12-29 11:42:34 +01:00
parent 270693abc9
commit cc51cabf85

View file

@ -32,7 +32,7 @@ def run_pytest(django_settings_path, destination):
import pytest import pytest
# collect only project tests: # collect only project tests and pass existing pytest arguments:
sys.argv = [__file__, str(test_path)] sys.argv = [__file__, str(test_path)] + sys.argv[1:]
raise SystemExit(pytest.console_main()) raise SystemExit(pytest.console_main())