We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c063c27 commit 9bd4a60Copy full SHA for 9bd4a60
1 file changed
tests/unit/test_handlers.py
@@ -53,6 +53,12 @@ def test_for_existing_product(self):
53
assert "b2" in [b.reference for b in uow.products.get("GARISH-RUG").batches]
54
55
56
+@pytest.fixture(autouse=True)
57
+def fake_redis_publish():
58
+ with mock.patch("allocation.adapters.redis_eventpublisher.publish"):
59
+ yield
60
+
61
62
class TestAllocate:
63
def test_allocates(self):
64
uow = FakeUnitOfWork()
0 commit comments