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

Method setUp

huey/tests/test_helpers.py:11–14  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

9@requires_redis
10class TestLockTaskSemaphore(BaseTestCase):
11 def setUp(self):
12 super(TestLockTaskSemaphore, self).setUp()
13 self.semaphore = RedisSemaphore(self.huey, 'lock_a', 2)
14 self.huey.storage.conn.delete(self.semaphore.key)
15
16 def tearDown(self):
17 self.huey.storage.conn.delete(self.semaphore.key)

Callers

nothing calls this directly

Calls 2

RedisSemaphoreClass · 0.90
deleteMethod · 0.80

Tested by

no test coverage detected