From bf812d78f51e60724a83568b5b42ae3ce1e42085 Mon Sep 17 00:00:00 2001 From: hidaris Date: Mon, 12 Apr 2021 20:11:23 +0800 Subject: [PATCH] 0.8.1 --- pyproject.toml | 2 +- tests/test_rule_engine.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 3b0522a..ee3fd77 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "thingtalk" -version = "0.8.0" +version = "0.8.1" description = "Web of Things framework, high performance, easy to learn, fast to code, ready for production" authors = ["hidaris "] readme = "README.md" diff --git a/tests/test_rule_engine.py b/tests/test_rule_engine.py index 02baac2..f6f669c 100644 --- a/tests/test_rule_engine.py +++ b/tests/test_rule_engine.py @@ -5,7 +5,7 @@ from ..thingtalk.rule_engine import ( RuleEngine, Rule, And, Conclusion, Question ) -from ..thingtalk.toolkits.event_bus import ee +from ..thingtalk.toolkits.event_bus import mb from ..thingtalk.schema import OutMsg re = RuleEngine() @@ -51,10 +51,10 @@ async def test_compute_rule(): "action": "shake" } } - assert ee.listeners("things/0x00158d0005483fc1/state") == [re.compute_rule] + assert mb.listeners("things/0x00158d0005483fc1/state") == [re.compute_rule] try: msg = OutMsg(**msg) - ee.emit("things/0x00158d0005483fc1/state", msg) + mb.emit("things/0x00158d0005483fc1/state", msg) except ValidationError as e: pass await re.compute_rule(msg)