◐ Shell
clean mode source ↗

tests: restore image url no-media-type coverage · getsentry/sentry-python@f942f46

File tree

  • tests/integrations/pydantic_ai

Original file line numberDiff line numberDiff line change

@@ -2810,11 +2810,17 @@ async def test_set_usage_data_with_cache_tokens(sentry_init, capture_events):

28102810

"https://example.com/image.png",

28112811

id="http_url_no_redaction",

28122812

),

2813+

pytest.param(

2814+

"https://example.com/api?data=iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs",

2815+

{},

2816+

"https://example.com/api?data=iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs",

2817+

id="http_url_with_base64_query_param_no_media_type",

2818+

),

28132819

pytest.param(

28142820

"https://example.com/api?data=iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs",

28152821

{"media_type": "image/png"},

28162822

"https://example.com/api?data=iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs",

2817-

id="http_url_with_base64_query_param",

2823+

id="http_url_with_base64_query_param_with_media_type",

28182824

),

28192825

pytest.param(

28202826

"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciLz4=",