mirror of
https://github.com/webrecorder/pywb.git
synced 2025-03-15 00:03:28 +01:00
move pytest args to pytest.ini
This commit is contained in:
parent
3b1afc3e3d
commit
40b7a8e921
2
pytest.ini
Normal file
2
pytest.ini
Normal file
@ -0,0 +1,2 @@
|
||||
[pytest]
|
||||
addopts=--cov-config .coveragerc --cov pywb -v --doctest-module ./pywb/ tests/
|
7
setup.py
7
setup.py
@ -25,9 +25,10 @@ class PyTest(TestCommand):
|
||||
def run_tests(self):
|
||||
import pytest
|
||||
import sys
|
||||
cmdline = ' --cov-config .coveragerc --cov pywb'
|
||||
cmdline += ' -v --doctest-module ./pywb/ tests/'
|
||||
errcode = pytest.main(cmdline)
|
||||
# cmdline opts moved to pytest.ini
|
||||
#cmdline = ' --cov-config .coveragerc --cov pywb'
|
||||
#cmdline += ' -v --doctest-module ./pywb/ tests/'
|
||||
errcode = pytest.main('')
|
||||
sys.exit(errcode)
|
||||
|
||||
setup(
|
||||
|
Loading…
x
Reference in New Issue
Block a user