We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 21a99e4 commit 9c98346Copy full SHA for 9c98346
tests/unit/test_collector.py
@@ -33,6 +33,15 @@
33
from tests.lib import TestData, make_test_link_collector
34
35
36
+ACCEPT = ", ".join(
37
+ [
38
+ "application/vnd.pypi.simple.v1+json",
39
+ "application/vnd.pypi.simple.v1+html; q=0.1",
40
+ "text/html; q=0.01",
41
+ ]
42
+)
43
+
44
45
@pytest.mark.parametrize(
46
"url",
47
[
@@ -143,7 +152,7 @@ def test_get_simple_response_archive_to_http_scheme_is_html(
143
152
mock.call.get(
144
153
url,
145
154
headers={
146
- "Accept": "text/html",
155
+ "Accept": ACCEPT,
147
156
"Cache-Control": "max-age=0",
148
157
},
149
158
),
@@ -189,7 +198,7 @@ def test_get_simple_response_no_head(
189
198
mock.call(
190
199
191
200
192
201
193
202
194
203
195
204
0 commit comments