Skip to content

Commit 1f92ca2

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

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
@@ -55,6 +55,12 @@ def test_for_existing_product():
5555

5656

5757

58+
@pytest.fixture(autouse=True)
59+
def fake_redis_publish():
60+
with mock.patch("allocation.redis_pubsub.publish"):
61+
yield
62+
63+
5864
class TestAllocate:
5965

6066
@staticmethod

0 commit comments

Comments
 (0)