Skip to content

Commit

Permalink
tests: removed unused import and fix operating on closed transaction …
Browse files Browse the repository at this point in the history
…inside context manager bug
  • Loading branch information
danellecline committed Apr 25, 2024
1 parent 23e4f1a commit 02a879b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_job_database.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ def test_update_one_media(setup_database):
# Get the media with the name vid3.mp4 and update the timestamp and status to SUCCESS
update_media(db, job, 'vid3.mp4', Status.SUCCESS)

# with session_maker.begin() as db:
with session_maker.begin() as db:
media = db.query(Media).filter(Media.name == 'vid3.mp4').first()

# Verify that the number of medias is the same, except a newer timestamp
Expand Down

0 comments on commit 02a879b

Please sign in to comment.