1
0
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:
Ilya Kreymer 2014-03-08 09:30:56 -08:00
parent 3b1afc3e3d
commit 40b7a8e921
2 changed files with 6 additions and 3 deletions

2
pytest.ini Normal file
View File

@ -0,0 +1,2 @@
[pytest]
addopts=--cov-config .coveragerc --cov pywb -v --doctest-module ./pywb/ tests/

View File

@ -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(