mirror of
https://github.com/actix/examples
synced 2025-02-02 09:39:03 +01:00
Fix client.py paths
This commit is contained in:
parent
44053504ad
commit
ffb1b40dc2
@ -12,7 +12,7 @@ async def req1():
|
|||||||
writer.append_json({'passed': True})
|
writer.append_json({'passed': True})
|
||||||
|
|
||||||
resp = await aiohttp.ClientSession().request(
|
resp = await aiohttp.ClientSession().request(
|
||||||
"post", 'http://localhost:8080/multipart',
|
"post", 'http://localhost:8080/',
|
||||||
data=writer, headers=writer.headers)
|
data=writer, headers=writer.headers)
|
||||||
print(resp)
|
print(resp)
|
||||||
assert 200 == resp.status
|
assert 200 == resp.status
|
||||||
@ -25,7 +25,7 @@ async def req2():
|
|||||||
writer.append(open('src/main.rs'))
|
writer.append(open('src/main.rs'))
|
||||||
|
|
||||||
resp = await aiohttp.ClientSession().request(
|
resp = await aiohttp.ClientSession().request(
|
||||||
"post", 'http://localhost:8080/multipart',
|
"post", 'http://localhost:8080/',
|
||||||
data=writer, headers=writer.headers)
|
data=writer, headers=writer.headers)
|
||||||
print(resp)
|
print(resp)
|
||||||
assert 200 == resp.status
|
assert 200 == resp.status
|
||||||
|
Loading…
x
Reference in New Issue
Block a user