server/scripts: replace ./test with setup.cfg

This commit is contained in:
rr- 2017-02-05 15:34:18 +01:00
parent e490080347
commit 350e9dd331
2 changed files with 3 additions and 8 deletions

3
server/setup.cfg Normal file
View file

@ -0,0 +1,3 @@
[tool:pytest]
testpaths=szurubooru
addopts=--cov-report=term-missing --cov=szurubooru --tb=short

View file

@ -1,8 +0,0 @@
#!/usr/bin/env python3
import pytest
import sys
pytest.main([
'--cov-report=term-missing',
'--cov=szurubooru',
'--tb=short',
] + (sys.argv[1:] or ['szurubooru']))