Skip to content

Commit

Permalink
More fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathangreen committed Apr 4, 2024
1 parent 4bfacd5 commit 52a7119
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/core/celery/tasks/test_collection_delete.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ def test_collection_delete_job_collection(db: DatabaseTransactionFixture):
assert CollectionDeleteJob.collection(db.session, 1) is None

collection = db.collection(name="collection1")
assert collection.id is not None
assert CollectionDeleteJob.collection(db.session, collection.id) == collection


Expand Down Expand Up @@ -42,6 +43,7 @@ def test_collection_delete_job_run(

assert db.session.execute(query).scalar_one_or_none() == collection

assert collection.id is not None
job = CollectionDeleteJob(mock_session_maker, collection.id)
job.run()
assert db.session.execute(query).scalar_one_or_none() is None
Expand Down

0 comments on commit 52a7119

Please sign in to comment.