From de3278c4152d8c18b7515186c4246cd60029a229 Mon Sep 17 00:00:00 2001 From: Vignesh Venkatasubramanian Vaidyanathan <62492557+VigneshVSV@users.noreply.github.com> Date: Sat, 5 Oct 2024 12:47:17 +0200 Subject: [PATCH] allow reassign event dispatcher object with a different one --- tests/test_events.py | 2 +- tests/test_thing_init.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_events.py b/tests/test_events.py index 27e5804..59956d1 100644 --- a/tests/test_events.py +++ b/tests/test_events.py @@ -27,7 +27,7 @@ def push_events(self): def _push_worker(self): for i in range(100): self.test_event.push('test data') - time.sleep(0.01) + time.sleep(0.01) # 10ms diff --git a/tests/test_thing_init.py b/tests/test_thing_init.py index f555905..8f5f83a 100644 --- a/tests/test_thing_init.py +++ b/tests/test_thing_init.py @@ -162,6 +162,7 @@ def test_7_servers_init(self): def test_8_resource_generation(self): # basic test only to make sure nothing is fundamentally wrong thing = self.thing_cls(instance_name="test_servers_init", log_level=logging.WARN) + # thing._prepare_resources() self.assertIsInstance(thing.get_thing_description(), dict) self.assertIsInstance(thing.httpserver_resources, dict) self.assertIsInstance(thing.zmq_resources, dict)