Skip to content

Commit

Permalink
using assert_called_once() in est__pop_ready_uses_lock (#1813)
Browse files Browse the repository at this point in the history
  • Loading branch information
auvipy authored Oct 18, 2023
1 parent 6c8e7e6 commit 7187021
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion t/unit/asynchronous/test_hub.py
Original file line number Diff line number Diff line change
Expand Up @@ -568,4 +568,4 @@ def test__pop_ready_pops_ready_items(self):
def test__pop_ready_uses_lock(self):
with patch.object(self.hub, '_ready_lock', autospec=True) as lock:
self.hub._pop_ready()
assert lock.__enter__.called_once()
lock.__enter__.assert_called_once()

0 comments on commit 7187021

Please sign in to comment.