Skip to content

Commit 3c7b7aa

Browse files
Merge pull request #883 from VWS-Python/100-cov
Remove an if statement which always evaluates to True
2 parents d8ce859 + 3529fb0 commit 3c7b7aa

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/mock_vws/utils/assertions.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,6 @@ def assert_vwq_failure(
251251
)
252252
assert response.headers.get('transfer-encoding', 'chunked') == 'chunked'
253253
assert response.headers['Connection'] == connection
254-
if 'Content-Length' in response.headers:
255-
assert response.headers['Content-Length'] == str(len(response.text))
254+
assert response.headers['Content-Length'] == str(len(response.text))
256255
assert_valid_date_header(response=response)
257256
assert response.headers['Server'] == 'nginx'

0 commit comments

Comments
 (0)