This commit is contained in:
Jakub Roztocil committed 2014-05-05 21:17:23 +02:00
1 parent 5a989b6075
commit d9eca19b8f
19 files changed
+57 -57

No files matched your search

+1 -1
View File
@@ -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
+2 -2
View File
@@ -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):
+1 -1
View File
@@ -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)
+1 -1
View File
@@ -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)
+1 -1
View File
@@ -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