From 40b7a8e92106c34bd609f39192eed2d31f9603d5 Mon Sep 17 00:00:00 2001 From: Ilya Kreymer Date: Sat, 8 Mar 2014 09:30:56 -0800 Subject: [PATCH] move pytest args to pytest.ini --- pytest.ini | 2 ++ setup.py | 7 ++++--- 2 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 pytest.ini diff --git a/pytest.ini b/pytest.ini new file mode 100644 index 00000000..5340e5ba --- /dev/null +++ b/pytest.ini @@ -0,0 +1,2 @@ +[pytest] +addopts=--cov-config .coveragerc --cov pywb -v --doctest-module ./pywb/ tests/ diff --git a/setup.py b/setup.py index 33356739..8ed33dc7 100755 --- a/setup.py +++ b/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(