From 4756dfd333213f9e474530bb52d3f37317edea80 Mon Sep 17 00:00:00 2001 From: Sean Hammond Date: Wed, 20 Nov 2024 11:20:36 +0000 Subject: [PATCH] wip --- tests/unit/h/services/job_queue_test.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/unit/h/services/job_queue_test.py b/tests/unit/h/services/job_queue_test.py index 035ca4b8349..198db186c71 100644 --- a/tests/unit/h/services/job_queue_test.py +++ b/tests/unit/h/services/job_queue_test.py @@ -1,3 +1,4 @@ +import logging import uuid from datetime import datetime, timedelta from unittest.mock import patch, sentinel @@ -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)