using assert_called_once() in est__pop_ready_uses_lock (#1813)

This commit is contained in:
Asif Saif Uddin 2023-10-18 16:14:16 +06:00 committed by GitHub
parent 6c8e7e6b28
commit 7187021ecc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -568,4 +568,4 @@ class test_Hub:
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()