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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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