8000 `testing` raises actually `UniqueViolation` instead of `AlreadyEnqueu… · Develop-Python/procrastinate@6a2eae8 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6a2eae8

Browse files
committed
testing raises actually UniqueViolation instead of AlreadyEnqueue - check for that
1 parent c7e0953 commit 6a2eae8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/unit/test_testing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def test_defer_same_job_with_queueing_lock_second_time_after_first_one_succeeded
122122

123123
# 2. Defering a second time should fail, as first one
124124
# still in state `todo`
125-
with pytest.raises(exceptions.AlreadyEnqueued):
125+
with pytest.raises(exceptions.UniqueViolation):
126126
connector.defer_job_one(
127127
**job_data
128128
)

0 commit comments

Comments
 (0)
0