Skip to content

Commit 42b163e

Browse files
Update tests/all/integration/api/helpers/test_scheduled_jobs.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 9ccc224 commit 42b163e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/all/integration/api/helpers/test_scheduled_jobs.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,9 @@ def test_expire_pending_tickets(db):
122122
def test_expire_pending_tickets_no_orders(db):
123123
"""Ensure no error when no pending orders exist"""
124124

125+
initial_count = Order.query.count()
126+
assert initial_count == 0
127+
125128
expire_pending_tickets()
126129

127-
assert Order.query.count() == 0
130+
assert Order.query.count() == initial_count

0 commit comments

Comments
 (0)