move py.test options to ini-file

This commit is contained in:
Thomas Kriechbaumer 2016-02-16 21:31:19 +01:00
parent 6b585023fd
commit 6c9aeaab9e
3 changed files with 6 additions and 3 deletions

View File

@ -17,7 +17,7 @@ install:
- "pip install --user -r requirements.txt"
- "python -c \"from OpenSSL import SSL; print(SSL.SSLeay_version(SSL.SSLEAY_VERSION))\""
test_script:
- "py.test -s --cov-config .coveragerc --timeout 30 ./test/"
- "py.test ./test/"
cache:
- C:\Users\appveyor\AppData\Local\pip\cache
deploy_script:

View File

@ -44,7 +44,7 @@ before_script:
- "openssl version -a"
script:
- "py.test -s --cov-config .coveragerc --timeout 30 ./test/$SCOPE"
- "py.test ./test/$SCOPE"
after_success:
- coveralls

3
pytest.ini Normal file
View File

@ -0,0 +1,3 @@
[pytest]
testpaths = test
addopts = --timeout 30 -s