From d1bffce0242f721a4bd3a61e88aaff6f6fa49248 Mon Sep 17 00:00:00 2001 From: Elena ``of Valhalla'' Grandi Date: Wed, 1 May 2019 17:59:33 +0200 Subject: Start listening for future commands on a socket. --- tests/test_ctl.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 tests/test_ctl.py (limited to 'tests/test_ctl.py') diff --git a/tests/test_ctl.py b/tests/test_ctl.py new file mode 100644 index 0000000..404a430 --- /dev/null +++ b/tests/test_ctl.py @@ -0,0 +1,18 @@ +import os +import tempfile + +from tornado.testing import AsyncTestCase + +from pyapd import ctl, config + + +class TestCtlServer(AsyncTestCase): + def setUp(self): + super().setUp() + self.tempdir = tempfile.TemporaryDirectory() + conf = config.Config('tests/data/test_config.yaml') + conf.ctl_socket = os.path.join(self.tempdir.name, 'pyapd.sock') + self.ctl_server = ctl.CtlServer(conf) + + def test_nothing(self): + pass -- cgit v1.2.3