Skip to content

Commit

Permalink
removed database test from main
Browse files Browse the repository at this point in the history
  • Loading branch information
Raining-Cloud committed Jan 22, 2024
1 parent c7591ff commit 03c73cb
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions teamprojekt_competition_server/server/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,20 +46,4 @@ def _player_won(self, index) -> bool:
def main():
"""main function for testing"""
server = COMPServer(LaserHockeyGame)
server.start()


def test_database():
"""function to test database"""
game_db = GameDatabase()
gameID = game_db.insert_game(12, 23)
gameID = game_db.insert_game(52, 12)
print(gameID)
print(game_db.get_playerIDs(gameID=gameID))
print(game_db.get_gameIDs(playerID=12))
print(game_db.get_won_gameIDs(playerID=12))


if __name__ == "__main__":
main()
# test_database()
server.start()

0 comments on commit 03c73cb

Please sign in to comment.