Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 31, 2021
1 parent a885144 commit 382c326
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -746,13 +746,15 @@ def test_is_expected_content_type_non_application_json_private_suffix():
response_content_type=response_ct, expected_content_type=expected_ct
)


def test_is_expected_content_type_json_with_charset():
expected_ct = "application/json"
response_ct = "application/json; charset=UTF-8"
assert is_expected_content_type(
response_content_type=response_ct, expected_content_type=expected_ct
)


def test_is_expected_content_type_json_match_not_just_prefix():
expected_ct = "application/json"
response_ct = "application/json-seq"
Expand Down

0 comments on commit 382c326

Please sign in to comment.