diff options
| author | Karan Jayachandra <karan.jayachandra@nxp.com> | 2024-04-05 14:08:01 +0200 |
|---|---|---|
| committer | Karan Jayachandra <karan.jayachandra@nxp.com> | 2024-04-05 14:08:01 +0200 |
| commit | f48223b3d93e54cb9ed3f2174e9b6075719128bf (patch) | |
| tree | 31bbd308959958c1917e0e9d122ba09695ff9764 /src/match_up/tests | |
| parent | 6dcdffeea79c76436fccaad5b382af709af8c121 (diff) | |
Some progress on the dash application
Diffstat (limited to 'src/match_up/tests')
| -rw-r--r-- | src/match_up/tests/__init__.py | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/match_up/tests/__init__.py b/src/match_up/tests/__init__.py index 4dbd883..3166746 100644 --- a/src/match_up/tests/__init__.py +++ b/src/match_up/tests/__init__.py @@ -3,17 +3,15 @@ from os.path import isfile from random import randint from pathlib import PurePath from names import get_first_name, get_last_name -from match_up.model import Player, PlayerDatabase +from match_up.model import Player, PlayerDatabase, MIN_SKILL, MAX_SKILL TEST_DATABASE_LOCATION = PurePath("test_storage.json") -MIN_SKILL = 1 -MAX_SKILL = 10 def generate_test_database(total_players: int = 20) -> None: try: if isfile(TEST_DATABASE_LOCATION): - remove_test_database() + remove(TEST_DATABASE_LOCATION) db = PlayerDatabase(TEST_DATABASE_LOCATION) for _ in range(total_players): db.add_player( @@ -38,5 +36,9 @@ def activate_random_players(activate_players: int = 17) -> None: db.close() -def remove_test_database() -> None: - remove(TEST_DATABASE_LOCATION) +def main(): + pass + + +if __name__ == "__main__": + main() |
