Skip to content

Conversation

@evanugarte
Copy link
Contributor

No description provided.

Comment on lines +90 to +98
mock_mark_completed.assert_called_once()

# Extract the arguments from the call
# call_args is a tuple of (args, kwargs)
args, _ = mock_mark_completed.call_args
db_name, job_list = args

self.assertEqual(db_name, "dummy.db")
self.assertCountEqual(job_list, ["HP_LaserJet_p2015dn_Right-53", "HP_LaserJet_p2015dn_Right-54"])
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this was flaky so i changed it to extract all args and use assertCountEqual

Copy link
Contributor

@thebeninator thebeninator left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@evanugarte evanugarte merged commit 05d7048 into dev Dec 24, 2025
1 check passed
@evanugarte evanugarte deleted the 20251224_overwrite_log_in_sqlite branch December 24, 2025 23:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants