Collection of random (mainly) test improvements (#33733)

This commit is contained in:
Franck Nijhof authored and GitHub committed 2020-04-06 12:51:48 +02:00
1 parent b31284b855
commit 98a2efcbab
33 files changed
+337 -344

No files matched your search

+1 -1
View File
@@ -212,6 +212,6 @@ class TestGraphite(unittest.TestCase):
mock_queue.get.side_effect = fake_get
self.gf.run()
# Twice for two events, once for the stop
assert 3 == mock_queue.task_done.call_count
assert mock_queue.task_done.call_count == 3
assert mock_r.call_count == 1
assert mock_r.call_args == mock.call("entity", event.data["new_state"])