Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
seanh committed Nov 20, 2024
1 parent 42f60a4 commit 4756dfd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/unit/h/services/job_queue_test.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import logging
import uuid
from datetime import datetime, timedelta
from unittest.mock import patch, sentinel
Expand Down Expand Up @@ -184,13 +185,15 @@ def test_add_group_annotations(self, svc, add_where):
where = add_where.call_args[0][1]
assert where[0].compare(Annotation.groupid == sentinel.groupid)

def test_delete(self, factories, svc, db_session):
def test_delete(self, factories, svc, db_session, caplog):
caplog.set_level(logging.INFO)
jobs = factories.SyncAnnotationJob.create_batch(size=5)
db_session.flush()

svc.delete(jobs)

assert not db_session.query(Job).all()
assert caplog.messages == [f"Deleted job: {job!r}" for job in jobs]

def test_factory(self, pyramid_request, db_session):
svc = factory(sentinel.context, pyramid_request)
Expand Down

0 comments on commit 4756dfd

Please sign in to comment.