From 846aec9fcea9788b0619e36d79c35a0531e6d8c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krist=C3=B3f=20T=C3=B3th?= Date: Mon, 29 Jul 2019 13:38:28 +0200 Subject: [PATCH] Move unit tests to pipe_io_server package --- .../test_pipe_io_server.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) rename test_echo_server.py => pipe_io_server/test_pipe_io_server.py (96%) diff --git a/test_echo_server.py b/pipe_io_server/test_pipe_io_server.py similarity index 96% rename from test_echo_server.py rename to pipe_io_server/test_pipe_io_server.py index 7902602..942674a 100644 --- a/test_echo_server.py +++ b/pipe_io_server/test_pipe_io_server.py @@ -9,8 +9,12 @@ from json import dumps, loads import pytest -from echo_server import EchoPipeIOServer -from pipe_io_server import PipeIOServer +from .pipe_io_server import PipeIOServer + + +class EchoPipeIOServer(PipeIOServer): + def handle_message(self, message): + self.send_message(message) @pytest.fixture