Update HTTP call recording to properly send headers being tested
This commit is contained in:
parent
7d03149f91
commit
7c58a3ceff
|
@ -748,7 +748,11 @@ def test_recording_calls(port):
|
|||
with HTTPretty.playback(destination):
|
||||
# And make the expected requests
|
||||
response1 = requests.get(server_url("/foobar?name=Gabriel&age=25", port))
|
||||
response2 = requests.post(server_url("/foobar", port), data=json.dumps({'test': '123'}))
|
||||
response2 = requests.post(
|
||||
server_url("/foobar", port),
|
||||
data=json.dumps({'test': '123'}),
|
||||
headers={"Test": "foobar"},
|
||||
)
|
||||
|
||||
# Then the responses should be the expected
|
||||
response1.json().should.equal({"foobar": {"age": "25", "name": "Gabriel"}})
|
||||
|
|
Loading…
Reference in New Issue