fix: send reply test failure with cython (#265)

This commit is contained in:
J. Nick Koston
2023-11-07 15:09:22 -06:00
committed by GitHub
parent 40a45b8694
commit e634fc2c70

View File

@@ -1,4 +1,5 @@
import os
from unittest.mock import patch
import pytest
@@ -35,6 +36,7 @@ def test_send_reply_exception() -> None:
def _setup_socket(self) -> None:
pass
with patch("socket.socket.connect"):
mock_message_bus = MockBus()
mock_message = Message(
path="/test/path", interface="test.interface", member="test_member", serial=1
@@ -65,6 +67,7 @@ def test_send_reply_happy_path() -> None:
def _setup_socket(self) -> None:
pass
with patch("socket.socket.connect"):
mock_message_bus = MockBus()
mock_message = Message(
path="/test/path", interface="test.interface", member="test_member", serial=1