MCPcopy Create free account
hub / github.com/coleifer/huey / test_wait_result

Method test_wait_result

huey/tests/test_storage.py:152–156  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

150 self.assertEqual(self.s.result_items(), {})
151
152 def test_wait_result(self):
153 key = str(uuid.uuid4())
154 self.assertFalse(self.s.wait_result(key, timeout=0.1))
155 self.s.put_data(key, b'v1', is_result=True)
156 self.assertTrue(self.s.wait_result(key, timeout=1))
157
158 def test_priority(self):
159 if not self.s.priority:

Callers

nothing calls this directly

Calls 2

wait_resultMethod · 0.45
put_dataMethod · 0.45

Tested by

no test coverage detected