def test_add_player(player): players = DataHandler.load_players() if player.id not in players: players[player.id] = player.to_json_obj() DataHandler.save_players(players)