Skip to content

Commit 7f5c2e2

Browse files
author
Fabien Coelho
committed
put content back
1 parent cc9e9e0 commit 7f5c2e2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

FlaskTester.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -359,13 +359,13 @@ def delete(self, path, **kwargs):
359359
"""HTTP DELETE request."""
360360
return self.request("DELETE", path, **kwargs)
361361

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

368-
return self.request(method, path, status=status, **kwargs)
368+
return self.request(method, path, status=status, content=content, **kwargs)
369369

370370

371371
class RequestClient(Client):

0 commit comments

Comments
 (0)