From 9f7af072dcc80c9591b811a69705f381a0c90db3 Mon Sep 17 00:00:00 2001 From: Keith Edmunds Date: Sun, 2 Jun 2024 19:28:26 +0100 Subject: [PATCH] Remove carts from tests --- tests/test_models.py | 7 ------- tests/test_playlists.py | 5 ----- 2 files changed, 12 deletions(-) diff --git a/tests/test_models.py b/tests/test_models.py index 22f8b4d..c4c8f66 100644 --- a/tests/test_models.py +++ b/tests/test_models.py @@ -18,7 +18,6 @@ if os.path.exists(DB_FILE): os.environ["ALCHEMICAL_DATABASE_URI"] = "sqlite:///" + DB_FILE from app.models import ( # noqa: E402 db, - Carts, NoteColours, Playdates, Playlists, @@ -256,12 +255,6 @@ class TestMMModels(unittest.TestCase): colour = nc3.get_colour(session, BAD_STRING) assert colour is None - def test_create_cart(self): - with db.Session() as session: - cart = Carts(session, 1, "name") - assert cart - _ = str(cart) - def test_name_available(self): PLAYLIST_NAME = "a name" RENAME = "new name" diff --git a/tests/test_playlists.py b/tests/test_playlists.py index d0cdfbc..8a84e4e 100644 --- a/tests/test_playlists.py +++ b/tests/test_playlists.py @@ -19,14 +19,9 @@ os.environ["ALCHEMICAL_DATABASE_URI"] = "sqlite:///" + DB_FILE from app import playlistmodel, utilities from app.models import ( # noqa: E402 db, - Carts, - NoteColours, - Playdates, Playlists, - PlaylistRows, Tracks, ) -from app import playlists from app import musicmuster