We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b0b81b commit 62e2730Copy full SHA for 62e2730
tests/test_actions.py
@@ -73,6 +73,10 @@ def test_no_args(client):
73
run({}) # an empty dict should be OK
74
run(None) # it should also be OK to call it with None
75
# Calling with no payload is equivalent to None
76
+ with pytest.raises(RuntimeError, match="422"):
77
+ run(10) # the payload must be a dict - this will error.
78
79
+ run({"key": "value"}) # non-empty dicts should cause an error.
80
81
82
def test_only_kwargs(client):
0 commit comments