Exemple #1
0
def test_simple_create_game(temp_dir):
    db = GameDB(temp_dir)
    token = db.add_new_game()
    assert db.is_game_token(token)
Exemple #2
0
def test_create_game_with_frames(temp_dir):
    db = GameDB(temp_dir)
    token = db.add_new_game(frames={"test": "test"})
    assert db.is_game_token(token)
    assert db.get_game_frames(token) == {"test": "test"}