mirror of
https://github.com/YunoHost-Apps/django_example_ynh.git
synced 2024-09-03 18:26:21 +02:00
pass existing pytest arguments
This commit is contained in:
parent
270693abc9
commit
cc51cabf85
1 changed files with 2 additions and 2 deletions
|
@ -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())
|
||||
|
|
Loading…
Reference in a new issue