diff options
| author | Simeon Simeonov | 2026-06-05 07:11:03 +0200 |
|---|---|---|
| committer | Simeon Simeonov | 2026-06-05 07:11:03 +0200 |
| commit | 742fcdfabaeed8f9f70e14165cc9740f5b17d5a8 (patch) | |
| tree | 7ac25ffe633cf6d36ead4e8cf2cce9f230936f6e /tests | |
| parent | 7b66519eb4ebe119e5fdc9c1eb6a11fdfab9b7bf (diff) | |
Add support for storing data permanently
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/__init__.py | 0 | ||||
| -rw-r--r-- | tests/scorecounter.py | 35 | ||||
| -rw-r--r-- | tests/test_app.py | 3 |
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 @@ | |||
| 1 | import os | ||
| 2 | import sys | ||
| 3 | import tempfile | ||
| 4 | from pathlib import Path | ||
| 5 | |||
| 6 | import pytest | ||
| 7 | |||
| 8 | |||
| 9 | def 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 | |||
| 34 | if __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 @@ | |||
| 1 | def test_first(): | ||
| 2 | """An initial test for the app.""" | ||
| 3 | assert 1 + 1 == 2 | ||
