aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKaran Jayachandra <mail@karanjayachandra.com>2024-11-15 17:09:59 +0100
committerKaran Jayachandra <mail@karanjayachandra.com>2024-11-15 17:09:59 +0100
commit6bb45fb64c76304f42a7cdfcad89477fee3ad947 (patch)
treee5eaedddb6befa622c34377629bf9caf79b5d753 /src
parent0427e575e9cd32f3a38791fe26f2fd920a3f3f3f (diff)
Removed the SQL output to the terminal
Diffstat (limited to 'src')
-rw-r--r--src/match_up/model.py2
-rw-r--r--src/match_up/tests/test_db.py15
2 files changed, 1 insertions, 16 deletions
diff --git a/src/match_up/model.py b/src/match_up/model.py
index abce73c..b11622d 100644
--- a/src/match_up/model.py
+++ b/src/match_up/model.py
@@ -60,7 +60,7 @@ class PlayerList:
_init_random_database(self.session)
def _init_database(self):
- engine = create_engine("sqlite:///" + self.db_location, echo=True)
+ engine = create_engine("sqlite:///" + self.db_location)
BASE.metadata.create_all(bind=engine)
self.session = sessionmaker(bind=engine)()
diff --git a/src/match_up/tests/test_db.py b/src/match_up/tests/test_db.py
deleted file mode 100644
index 5097090..0000000
--- a/src/match_up/tests/test_db.py
+++ /dev/null
@@ -1,15 +0,0 @@
-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()