mirror of
https://github.com/httpie/cli.git
synced 2024-11-28 08:38:44 +02:00
Skip tests with redirects on Requests 0.13.6.
This commit is contained in:
parent
07de32c406
commit
f6724452cf
@ -25,6 +25,7 @@ import json
|
||||
import argparse
|
||||
import tempfile
|
||||
import unittest
|
||||
from requests import __version__ as requests_version
|
||||
try:
|
||||
from urllib.request import urlopen
|
||||
except ImportError:
|
||||
@ -765,6 +766,8 @@ class AuthTest(BaseTestCase):
|
||||
self.assertIn('"authenticated": true', r)
|
||||
self.assertIn('"user": "user"', r)
|
||||
|
||||
@skipIf(requests_version == '0.13.6',
|
||||
'Redirects with prefetch=False are broken in Requests 0.13.6')
|
||||
def test_digest_auth(self):
|
||||
r = http(
|
||||
'--auth-type=digest',
|
||||
@ -822,6 +825,8 @@ class ExitStatusTest(BaseTestCase):
|
||||
self.assertEqual(r.exit_status, EXIT.ERROR_HTTP_3XX)
|
||||
self.assertIn('301 moved permanently', r.stderr.lower())
|
||||
|
||||
@skipIf(requests_version == '0.13.6',
|
||||
'Redirects with prefetch=False are broken in Requests 0.13.6')
|
||||
def test_3xx_check_status_redirects_allowed_exits_0(self):
|
||||
r = http(
|
||||
'--check-status',
|
||||
|
Loading…
Reference in New Issue
Block a user