Skip to content

Commit 0442991

Browse files
committed
Mock path properly in test code for wrapped action.
Error checking code added elsewhere now means Things must have a `path` property or we can't generate the Thing Description. I've added this manually in test code, so we don't need a server.
1 parent 42465fa commit 0442991

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

tests/test_actions.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ def decorated(
183183

184184
# Check we can make the thing and it has a valid TD
185185
example = Example()
186+
example.path = "/example"
186187
example.validate_thing_description()
187188

188189

0 commit comments

Comments
 (0)