Skip to content
Myr

remove danger_mode tests

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

authored by Kenneth Reitz · committed by Kenneth Reitz · parent 67c7e49 · Browse files · 1 file+0 added−13 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+0 added−13 removed

  • tests:+0 added−13 removed

1 file+0 added−13 removed

modified:tests/test_requests.py-13 removed
460 unmodified lines
461 r = get(httpbin('status', '200'))462 self.assertFalse(r.error)463 r.raise_for_status()464465 def test_default_status_raising(self):466 config = {'danger_mode': True}467 args = [httpbin('status', '404')]468 kwargs = dict(config=config)469 self.assertRaises(HTTPError, get, *args, **kwargs)470471 r = get(httpbin('status', '200'))472 self.assertEqual(r.status_code, 200)473465 def test_decompress_gzip(self):466467 r = get(httpbin('gzip'))468 r.content.decode('ascii')
547 unmodified lines
1016 requests.get(httpbin('headers'), headers={'Foo': None})1017 except TypeError:1018 self.fail('Not able to have none in header values')10191029 def test_danger_mode_redirects(self):1030 s = requests.session()1031 s.config['danger_mode'] = True1032 s.get(httpbin('redirect', '4'))10201021 def test_empty_response(self):1022 r = requests.get(httpbin('status', '404'))1023 r.text
128 unmodified lines