1
0
mirror of https://github.com/httpie/cli.git synced 2025-08-10 22:42:05 +02:00

Switch from httpbin.org to pie.dev

This commit is contained in:
Jakub Roztocil
2020-12-24 21:34:30 +01:00
parent 2afdc958c6
commit 6922a0c912
4 changed files with 89 additions and 89 deletions

View File

@@ -10,7 +10,7 @@ def test_Host_header_overwrite(httpbin):
https://github.com/httpie/httpie/issues/235
"""
host = 'httpbin.org'
host = 'pie.dev'
url = httpbin.url + '/get'
r = http('--print=hH', url, 'host:{0}'.format(host))
assert HTTP_OK in r

View File

@@ -17,7 +17,7 @@ from httpie.core import main
# pytest-httpbin currently does not support chunked requests:
# <https://github.com/kevin1024/pytest-httpbin/issues/33>
# <https://github.com/kevin1024/pytest-httpbin/issues/28>
HTTPBIN_WITH_CHUNKED_SUPPORT = 'http://httpbin.org'
HTTPBIN_WITH_CHUNKED_SUPPORT = 'http://pie.dev'
TESTS_ROOT = Path(__file__).parent
@@ -198,7 +198,7 @@ def http(
Example:
$ http --auth=user:password GET httpbin.org/basic-auth/user/password
$ http --auth=user:password GET pie.dev/basic-auth/user/password
>>> httpbin = getfixture('httpbin')
>>> r = http('-a', 'user:pw', httpbin.url + '/basic-auth/user/pw')