Skip to content

Commit

Permalink
0.8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
hidaris committed Apr 12, 2021
1 parent d57fd7f commit bf812d7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>"]
readme = "README.md"
Expand Down
6 changes: 3 additions & 3 deletions tests/test_rule_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit bf812d7

Please sign in to comment.