summaryrefslogtreecommitdiff
path: root/tests/scorecounter.py
diff options
context:
space:
mode:
authorSimeon Simeonov2026-06-05 07:11:03 +0200
committerSimeon Simeonov2026-06-05 07:11:03 +0200
commit742fcdfabaeed8f9f70e14165cc9740f5b17d5a8 (patch)
tree7ac25ffe633cf6d36ead4e8cf2cce9f230936f6e /tests/scorecounter.py
parent7b66519eb4ebe119e5fdc9c1eb6a11fdfab9b7bf (diff)
Add support for storing data permanently
Diffstat (limited to 'tests/scorecounter.py')
-rw-r--r--tests/scorecounter.py35
1 files changed, 0 insertions, 35 deletions
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()