Skip to content

Commit cc03a51

Browse files
author
Fabien Coelho
committed
more deprecation
1 parent 474517f commit cc03a51

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

FlaskTester.py

-4
Original file line numberDiff line numberDiff line change
@@ -381,10 +381,6 @@ def delete(self, path: str, status: int|None = None, content: str|None = None, *
381381
"""HTTP DELETE request, see `Client.request`."""
382382
return self.request("DELETE", path, status=status, content=content, **kwargs)
383383

384-
def check(self, method: str, path: str, status: int, content: str|None = None, **kwargs):
385-
"""Deprecated, use ``request`` or HTTP-method-specific methods."""
386-
return self.request(method, path, status=status, content=content, **kwargs)
387-
388384

389385
class RequestClient(Client):
390386
"""Request-based test provider.

docs/versions.md

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ please report any [issues](https://github.com/zx80/flask-tester/issues).
99

1010
Improved documentation and tests.
1111
Remove deprecated `FLASK_TESTER_URL`, simplifying code in passing.
12+
Remove deprecated `check` method.
1213

1314
## 3.6 on 2024-03-30
1415

tests/test_app.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ def test_request_client():
296296
try:
297297
client = ft.RequestClient(ft.Authenticator(), "http://localhost:8888")
298298
client.get("/", 200)
299-
client.check("GET", "/", 200)
299+
client.request("GET", "/", 200)
300300
hello = io.BytesIO(b"hello world")
301301
client.post("/", 501, data={"hello": hello})
302302
hello = io.BytesIO(b"hello world")

0 commit comments

Comments
 (0)