Skip to content

Commit 89a0607

Browse files
committed
No need to re-do Session table entry
1 parent 27748f0 commit 89a0607

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

tests/server/api/test_movies.py

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
MurfeyLedger,
1616
ProcessingJob,
1717
)
18-
from murfey.util.db import Session as MurfeySession
1918
from tests.conftest import ExampleVisit, get_or_create_db_entry
2019

2120
# @pytest.fixture(scope="module")
@@ -52,24 +51,23 @@ def test_movie_count(
5251
):
5352

5453
# Insert table dependencies
55-
session_entry: MurfeySession = get_or_create_db_entry(
56-
murfey_db_session,
57-
MurfeySession,
58-
lookup_kwargs={"id": ExampleVisit.murfey_session_id},
59-
)
6054
dcg_entry: DataCollectionGroup = get_or_create_db_entry(
6155
murfey_db_session,
6256
DataCollectionGroup,
6357
lookup_kwargs={
6458
"id": 0,
65-
"session_id": session_entry.id,
59+
"session_id": ExampleVisit.murfey_session_id,
6660
"tag": "test_dcg",
6761
},
6862
)
6963
dc_entry: DataCollection = get_or_create_db_entry(
7064
murfey_db_session,
7165
DataCollection,
72-
lookup_kwargs={"id": 0, "tag": "test_dc", "dcg_id": dcg_entry.id},
66+
lookup_kwargs={
67+
"id": 0,
68+
"tag": "test_dc",
69+
"dcg_id": dcg_entry.id,
70+
},
7371
)
7472
processing_job_entry: ProcessingJob = get_or_create_db_entry(
7573
murfey_db_session,

0 commit comments

Comments
 (0)