mirror of
https://github.com/httpie/cli.git
synced 2026-06-20 11:32:56 +02:00
New URL.
This commit is contained in:
1 parent
5a989b6075
commit
d9eca19b8f
19 files changed
+57
-57
No files matched your search
+1
-1
@@ -5,4 +5,4 @@ HTTPie Test Suite
|
||||
Please see `CONTRIBUTING`_.
|
||||
|
||||
|
||||
.. _CONTRIBUTING: https://github.com/jkbr/httpie/blob/master/CONTRIBUTING.rst
|
||||
.. _CONTRIBUTING: https://github.com/jakubroztocil/httpie/blob/master/CONTRIBUTING.rst
|
||||
@@ -42,7 +42,7 @@ class TestAutoContentTypeAndAcceptHeaders:
|
||||
"""
|
||||
|
||||
def test_GET_no_data_no_auto_headers(self):
|
||||
# https://github.com/jkbr/httpie/issues/62
|
||||
# https://github.com/jakubroztocil/httpie/issues/62
|
||||
r = http('GET', httpbin('/headers'))
|
||||
assert HTTP_OK in r
|
||||
assert r.json['headers']['Accept'] == '*/*'
|
||||
@@ -73,7 +73,7 @@ class TestAutoContentTypeAndAcceptHeaders:
|
||||
assert HTTP_OK in r
|
||||
assert r.json['headers']['Accept'] == 'application/json'
|
||||
# Make sure Content-Type gets set even with no data.
|
||||
# https://github.com/jkbr/httpie/issues/137
|
||||
# https://github.com/jakubroztocil/httpie/issues/137
|
||||
assert 'application/json' in r.json['headers']['Content-Type']
|
||||
|
||||
def test_GET_explicit_JSON_explicit_headers(self):
|
||||
|
||||
@@ -20,7 +20,7 @@ class TestExitStatus:
|
||||
@pytest.mark.skipif(
|
||||
True,
|
||||
reason='timeout broken in requests'
|
||||
' (https://github.com/jkbr/httpie/issues/185)')
|
||||
' (https://github.com/jakubroztocil/httpie/issues/185)')
|
||||
def test_timeout_exit_status(self):
|
||||
r = http('--timeout=0.5', 'GET', httpbin('/delay/1'),
|
||||
error_exit_ok=True)
|
||||
|
||||
@@ -15,7 +15,7 @@ class TestHTTPie:
|
||||
def test_help(self):
|
||||
r = http('--help', error_exit_ok=True)
|
||||
assert r.exit_status == httpie.ExitStatus.ERROR
|
||||
assert 'https://github.com/jkbr/httpie/issues' in r
|
||||
assert 'https://github.com/jakubroztocil/httpie/issues' in r
|
||||
|
||||
def test_version(self):
|
||||
r = http('--version', error_exit_ok=True)
|
||||
|
||||
@@ -12,7 +12,7 @@ class TestVerboseFlag:
|
||||
assert r.count('__test__') == 2
|
||||
|
||||
def test_verbose_form(self):
|
||||
# https://github.com/jkbr/httpie/issues/53
|
||||
# https://github.com/jakubroztocil/httpie/issues/53
|
||||
r = http('--verbose', '--form', 'POST', httpbin('/post'),
|
||||
'A=B', 'C=D')
|
||||
assert HTTP_OK in r
|
||||
|
||||
Reference in new issue
Block a user