Skip to content

Commit

Permalink
testing exact content-length is way too strict
Browse files Browse the repository at this point in the history
  • Loading branch information
glyph committed Jun 1, 2022
1 parent e171009 commit bce8b85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/klein/test/test_resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from io import BytesIO
from types import MappingProxyType
from typing import Any, Callable, List, Mapping, Optional, Sequence, cast
from unittest.mock import Mock, call
from unittest.mock import ANY, Mock, call
from urllib.parse import parse_qs

from werkzeug.exceptions import NotFound
Expand Down Expand Up @@ -642,7 +642,7 @@ def foo(request: IRequest) -> KleinRenderable:
request.setHeader.assert_has_calls(
[
call(b"Content-Type", b"text/html; charset=utf-8"),
call(b"Content-Length", b"258"),
call(b"Content-Length", ANY),
call(b"Location", b"http://localhost:8080/foo/"),
]
)
Expand Down

0 comments on commit bce8b85

Please sign in to comment.