mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-17 20:17:37 +08:00
fix #64: when headers in test is None, it should inherit from config
This commit is contained in:
13
tests/data/test_bugfix.yml
Normal file
13
tests/data/test_bugfix.yml
Normal file
@@ -0,0 +1,13 @@
|
||||
- config:
|
||||
name: "bugfix testcases."
|
||||
request:
|
||||
base_url: http://127.0.0.1:5000
|
||||
headers:
|
||||
Content-Type: application/json
|
||||
|
||||
- test:
|
||||
name: get headers from config
|
||||
request:
|
||||
url: /api/users/1000
|
||||
method: GET
|
||||
headers:
|
||||
Reference in New Issue
Block a user