replace online httpbin service with httpbin lib

This commit is contained in:
debugtalk
2018-05-02 17:43:07 +08:00
parent 4b9cc0a9bd
commit e1d49010c0
7 changed files with 25 additions and 13 deletions

View File

@@ -1,7 +1,7 @@
- config:
name: basic test with httpbin
request:
base_url: https://httpbin.org/
base_url: http://127.0.0.1:3458/
- test:
name: headers
@@ -13,4 +13,4 @@
- setup_hook_remove_kwargs
validate:
- eq: ["status_code", 200]
- eq: [content.headers.Host, "httpbin.org"]
- eq: [content.headers.Host, "127.0.0.1:3458"]