Skip to content
Myr

Split test in two better-defined tests

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Alvaro Gutierrez Perez · committed by Alvaro Gutierrez Perez · parent e11989e · Browse files · 1 file+10 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+10 added−2 removed

  • tests:+10 added−2 removed

1 file+10 added−2 removed

modified:tests/test_requests.py+10 added-2 removed
1367 unmodified lines
1368 assert s.get_adapter(url_matching_only_prefix) is prefix_adapter1369 assert s.get_adapter(url_matching_more_specific_prefix) is more_specific_prefix_adapter1370 assert s.get_adapter(url_not_matching_prefix) not in (prefix_adapter, more_specific_prefix_adapter)13711372 def test_session_get_adapter_prefix_matching_is_case_insensitive(self, httpbin):1372 def test_session_get_adapter_prefix_matching_mixed_case(self, httpbin):1373 mixed_case_prefix = 'hTtPs://eXamPle.CoM/MixEd_CAse_PREfix'1374 url_matching_prefix = mixed_case_prefix + '/full_url'1375 url_matching_prefix_with_different_case = 'HtTpS://exaMPLe.cOm/MiXeD_caSE_preFIX/another_url'13751376 s = requests.Session()1377 my_adapter = HTTPAdapter()1378 s.mount(mixed_case_prefix, my_adapter)13791380 assert s.get_adapter(url_matching_prefix) is my_adapter13811382 def test_session_get_adapter_prefix_matching_is_case_insensitive(self, httpbin):1383 mixed_case_prefix = 'hTtPs://eXamPle.CoM/MixEd_CAse_PREfix'1384 url_matching_prefix_with_different_case = 'HtTpS://exaMPLe.cOm/MiXeD_caSE_preFIX/another_url'13851386 s = requests.Session()1387 my_adapter = HTTPAdapter()1388 s.mount(mixed_case_prefix, my_adapter)13891390 assert s.get_adapter(url_matching_prefix_with_different_case) is my_adapter13911392 def test_header_remove_is_case_insensitive(self, httpbin):1393 # From issue #1321
1034 unmodified lines