Skip to content

Commit

Permalink
put content back
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabien Coelho committed Mar 25, 2024
1 parent cc9e9e0 commit 7f5c2e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions FlaskTester.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,13 +359,13 @@ def delete(self, path, **kwargs):
"""HTTP DELETE request."""
return self.request("DELETE", path, **kwargs)

def check(self, method: str, path: str, status: int, **kwargs):
def check(self, method: str, path: str, status: int, content: str|None = None, **kwargs):
"""Run a query and check the response status.
Same as ``request``, but ``status`` is mandatory.
"""

return self.request(method, path, status=status, **kwargs)
return self.request(method, path, status=status, content=content, **kwargs)


class RequestClient(Client):
Expand Down

0 comments on commit 7f5c2e2

Please sign in to comment.