mirror of
https://github.com/webrecorder/pywb.git
synced 2025-03-24 06:59:52 +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):
|
def run_tests(self):
|
||||||
import pytest
|
import pytest
|
||||||
import sys
|
import sys
|
||||||
cmdline = ' --cov-config .coveragerc --cov pywb'
|
# cmdline opts moved to pytest.ini
|
||||||
cmdline += ' -v --doctest-module ./pywb/ tests/'
|
#cmdline = ' --cov-config .coveragerc --cov pywb'
|
||||||
errcode = pytest.main(cmdline)
|
#cmdline += ' -v --doctest-module ./pywb/ tests/'
|
||||||
|
errcode = pytest.main('')
|
||||||
sys.exit(errcode)
|
sys.exit(errcode)
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user