summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/__init__.py0
-rw-r--r--tests/scorecounter.py35
-rw-r--r--tests/test_app.py3
3 files changed, 0 insertions, 38 deletions
diff --git a/tests/__init__.py b/tests/__init__.py
deleted file mode 100644
index e69de29..0000000
--- a/tests/__init__.py
+++ /dev/null
diff --git a/tests/scorecounter.py b/tests/scorecounter.py
deleted file mode 100644
index d59e9f3..0000000
--- a/tests/scorecounter.py
+++ /dev/null
@@ -1,35 +0,0 @@
1import os
2import sys
3import tempfile
4from pathlib import Path
5
6import pytest
7
8
9def run_tests():
10 project_path = Path(__file__).parent.parent
11 os.chdir(project_path)
12
13 # Determine any args to pass to pytest. If there aren't any,
14 # default to running the whole test suite.
15 args = sys.argv[1:]
16 if len(args) == 0:
17 args = ["tests"]
18
19 returncode = pytest.main(
20 [
21 # Turn up verbosity
22 "-vv",
23 # Disable color
24 "--color=no",
25 # Overwrite the cache directory to somewhere writable
26 "-o",
27 f"cache_dir={tempfile.gettempdir()}/.pytest_cache",
28 ] + args
29 )
30
31 print(f">>>>>>>>>> EXIT {returncode} <<<<<<<<<<")
32
33
34if __name__ == "__main__":
35 run_tests()
diff --git a/tests/test_app.py b/tests/test_app.py
deleted file mode 100644
index e1a335f..0000000
--- a/tests/test_app.py
+++ /dev/null
@@ -1,3 +0,0 @@
1def test_first():
2 """An initial test for the app."""
3 assert 1 + 1 == 2