Skip to content

Commit

Permalink
fix: todo
Browse files Browse the repository at this point in the history
  • Loading branch information
mkundu1 committed Dec 17, 2024
1 parent 1fdd68a commit 9de4cc7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/test_mapped_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -739,8 +739,6 @@ def changed_cb(value):
changes.append(value())

service.add_on_child_created(app_name, "/", "eee", root, create_cb)
# TODO: fails at event streaming callback of on_child_created
# as the name "eee" is not available in the PyFluent side.
service.set_state(app_name, "/", {"eee:b": {}})
service.set_state(app_name, "/", {"eee:c": {}})
service.set_state(app_name, "/", {"B:d": {}})
Expand All @@ -749,6 +747,7 @@ def changed_cb(value):
service.add_on_changed(app_name, "/eee:b/yyy", root.eee["b"].yyy, changed_cb)
service.delete_object(app_name, "/eee:c")
service.set_state(app_name, "/", {"eee:b": {"yyy": 42}})
timeout_loop(lambda: len(changes) == 1, timeout=5)
assert called_paths == ["/eee:b", "/eee:c"]
assert delete_count == 1
assert changes == [42]
Expand Down

0 comments on commit 9de4cc7

Please sign in to comment.