From 350e9dd3310e95e19a2bd42f55d3d3aea25a0380 Mon Sep 17 00:00:00 2001 From: rr- Date: Sun, 5 Feb 2017 15:34:18 +0100 Subject: [PATCH] server/scripts: replace ./test with setup.cfg --- server/setup.cfg | 3 +++ server/test | 8 -------- 2 files changed, 3 insertions(+), 8 deletions(-) create mode 100644 server/setup.cfg delete mode 100755 server/test diff --git a/server/setup.cfg b/server/setup.cfg new file mode 100644 index 0000000..7e835b4 --- /dev/null +++ b/server/setup.cfg @@ -0,0 +1,3 @@ +[tool:pytest] +testpaths=szurubooru +addopts=--cov-report=term-missing --cov=szurubooru --tb=short diff --git a/server/test b/server/test deleted file mode 100755 index 69cfe54..0000000 --- a/server/test +++ /dev/null @@ -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']))