Skip to content

Commit ad532ed

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

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎tests/unit/test_handlers.py‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,12 @@ def test_for_existing_product():
5757

5858

5959

60+
@pytest.fixture(autouse=True)
61+
def fake_redis_publish():
62+
with mock.patch("allocation.adapters.redis_eventpublisher.publish"):
63+
yield
64+
65+
6066
class TestAllocate:
6167

6268
@staticmethod

0 commit comments

Comments
 (0)