from pathlib import PurePath from match_up.model import PlaySession from match_up.tests import ( TEST_DATABASE_LOCATION, generate_test_database, activate_random_players, ) DATABASE_LOCATION = "storage.json" class Application: def __init__(self, debug=False): if debug: database_location = TEST_DATABASE_LOCATION else: database_location = DATABASE_LOCATION self.session = PlaySession(PurePath(database_location)) def main(): generate_test_database() activate_random_players() a = Application(debug=True) print(a.session)