Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: send reply test failure with cython #265

Merged
merged 1 commit into from
Nov 7, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions tests/test_send_reply.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import os
from unittest.mock import patch

import pytest

Expand Down Expand Up @@ -35,7 +36,8 @@ def send_message(self, msg: Message) -> 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
)
Expand Down Expand Up @@ -65,7 +67,8 @@ def send_message(self, msg: Message) -> 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
)
Expand Down
Loading