File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -288,12 +288,15 @@ def none_upload(*args, **settings_kwargs):
288
288
assert "/foo/bar.crt" == upload_settings .cacert
289
289
290
290
291
- def test_check_status_code_for_wrong_repo_url (make_settings , capsys ):
291
+ @pytest .mark .parametrize ('repo_url' , [
292
+ "https://upload.pypi.org/" ,
293
+ "https://test.pypi.org/"
294
+ ])
295
+ def test_check_status_code_for_wrong_repo_url (repo_url , make_settings , capsys ):
292
296
upload_settings = make_settings ()
293
297
294
298
# override defaults to use incorrect URL
295
- upload_settings .repository_config ['repository' ] = \
296
- "https://upload.pypi.org"
299
+ upload_settings .repository_config ['repository' ] = repo_url
297
300
298
301
with pytest .raises (HTTPError ):
299
302
upload .upload (upload_settings , [
You can’t perform that action at this time.
0 commit comments