Skip to content

Commit

Permalink
#148 coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
ephes committed Jun 15, 2024
1 parent 3b7daa5 commit ef10a4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/api_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ def test_wagtail_pages_api_with_post_filter_and_fulltext_search(rf, blog, post):
def test_wagtail_api_viewsets_filter_null_bytes(rf, field_name, api_viewset_class):
# Given a request filtering for a slug containing a null byte
input_with_null_byte = "1%00%EF%BF%BD%EF%BF%BD%EF%BF%BD%EF%BF%BD%252527%252522"
request = rf.get(f"?{field_name}={input_with_null_byte}")
request = rf.get(f"?{field_name}={input_with_null_byte}&harmless=foo")
viewset = api_viewset_class()
viewset.request = request
queryset = viewset.get_queryset()
Expand Down

0 comments on commit ef10a4f

Please sign in to comment.