mirror of
https://github.com/httpie/cli.git
synced 2024-11-22 15:53:13 +01: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 argparse
|
||||||
import tempfile
|
import tempfile
|
||||||
import unittest
|
import unittest
|
||||||
|
from requests import __version__ as requests_version
|
||||||
try:
|
try:
|
||||||
from urllib.request import urlopen
|
from urllib.request import urlopen
|
||||||
except ImportError:
|
except ImportError:
|
||||||
@ -765,6 +766,8 @@ class AuthTest(BaseTestCase):
|
|||||||
self.assertIn('"authenticated": true', r)
|
self.assertIn('"authenticated": true', r)
|
||||||
self.assertIn('"user": "user"', 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):
|
def test_digest_auth(self):
|
||||||
r = http(
|
r = http(
|
||||||
'--auth-type=digest',
|
'--auth-type=digest',
|
||||||
@ -822,6 +825,8 @@ class ExitStatusTest(BaseTestCase):
|
|||||||
self.assertEqual(r.exit_status, EXIT.ERROR_HTTP_3XX)
|
self.assertEqual(r.exit_status, EXIT.ERROR_HTTP_3XX)
|
||||||
self.assertIn('301 moved permanently', r.stderr.lower())
|
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):
|
def test_3xx_check_status_redirects_allowed_exits_0(self):
|
||||||
r = http(
|
r = http(
|
||||||
'--check-status',
|
'--check-status',
|
||||||
|
Loading…
Reference in New Issue
Block a user