Skip to content

Commit

Permalink
Fix test to run with Python 3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
pieqq committed Mar 12, 2024
1 parent bdc6175 commit fcaea87
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions checkbox-ng/plainbox/impl/session/test_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -1246,10 +1246,8 @@ def test_override_update(self):
def test_bulk_override_update(self):
self_mock = MagicMock()
job_state1 = Mock(spec=JobState)
job_state2 = Mock(spec=JobState)
self_mock.state.job_state_map = {
"job1": job_state1,
"job2": job_state2,
}
SessionDeviceContext._bulk_override_update(self_mock)
self_mock._override_update.assert_called_with(job_state2.job)
self.assertTrue(self_mock._override_update.called)

0 comments on commit fcaea87

Please sign in to comment.