aboutsummaryrefslogtreecommitdiff
path: root/src/match_up/tests
diff options
context:
space:
mode:
authorKaran Jayachandra <mail@karanjayachandra.com>2024-11-12 18:15:29 +0100
committerKaran Jayachandra <mail@karanjayachandra.com>2024-11-12 18:15:29 +0100
commit7c0820d3d19927e695faa18cb3f5494ee39e0c77 (patch)
tree16f0c045a928a390558e81610ab8ca68e32249d8 /src/match_up/tests
parent7feeb30875c19a9f305e02f802e3634469349655 (diff)
Database handling added
Diffstat (limited to 'src/match_up/tests')
-rw-r--r--src/match_up/tests/test_db.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/match_up/tests/test_db.py b/src/match_up/tests/test_db.py
new file mode 100644
index 0000000..5097090
--- /dev/null
+++ b/src/match_up/tests/test_db.py
@@ -0,0 +1,15 @@
+from match_up.model import PlayerList
+
+
+def main():
+ p = PlayerList()
+ print(p.get_player_status(1))
+ print(p.toggle_player_status(1))
+ print(p.get_player_status(1))
+ print(p.get_all_players())
+ print(p.get_possible_game_count())
+ print(p.get_players())
+
+
+if __name__ == "__main__":
+ main()