Change deprecated httpx data usage in tests to content

This commit is contained in:
Robbe Sneyders
2023-02-16 09:15:02 +01:00
parent 816707d469
commit c1ff7641f6
5 changed files with 47 additions and 101 deletions

View File

@@ -82,7 +82,7 @@ def test_errors(problem_app):
unsupported_media_type = app_client.post(
"/v1.0/post_wrong_content_type",
data="<html></html>",
content="<html></html>",
headers={"content-type": "text/html"},
)
assert unsupported_media_type.status_code == 415