Skip to content

Commit eac85f0

Browse files
committed
remove content length assertion to allow for flexibility in response lenght
1 parent 610a418 commit eac85f0

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

tests/test_api_routes.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ async def test_item_handler(test_client):
1111

1212
assert response.status_code == 200
1313
assert response.headers["Content-Type"] == "application/json"
14-
assert response.headers["Content-Length"] == "405"
1514
assert response_data["id"] == test_data.id
1615
assert response_data["name"] == test_data.name
1716
assert response_data["description"] == test_data.description
@@ -39,7 +38,6 @@ async def test_similar_handler(test_client):
3938

4039
assert response.status_code == 200
4140
assert response.headers["Content-Type"] == "application/json"
42-
assert response.headers["Content-Length"] == "428"
4341
assert response.json() == [
4442
{
4543
"id": 71,
@@ -87,7 +85,6 @@ async def test_search_handler(test_client):
8785

8886
assert response.status_code == 200
8987
assert response.headers["Content-Type"] == "application/json"
90-
assert response.headers["Content-Length"] == "407"
9188
assert response_data["id"] == test_data.id
9289
assert response_data["name"] == test_data.name
9390
assert response_data["description"] == test_data.description

0 commit comments

Comments
 (0)