Skip to content

Commit d5d5b92

Browse files
committed
sneak in a redis patch so unit test dont need redis
1 parent eeb628e commit d5d5b92

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

‎tests/unit/test_services.py‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,14 @@ def test_for_existing_product():
4848
assert "b2" in [b.reference for b in uow.products.get("GARISH-RUG").batches]
4949

5050

51+
52+
@pytest.fixture(autouse=True)
53+
def fake_redis_publish():
54+
with mock.patch("allocation.redis_pubsub.publish"):
55+
yield
56+
57+
58+
5159
class TestAllocate:
5260

5361
@staticmethod

0 commit comments

Comments
 (0)