We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
aioresponses
~/tmp $ cat mwe.py import asyncio import aioresponses import aiohttp async def main(): with aioresponses.aioresponses() as m: initial_url = "http://acme.com/concat?strings=foo&strings=bar&strings=baz" print(f"with aioresponses, initial_url: {initial_url}") m.post(initial_url) async with aiohttp.ClientSession() as session: async with session.post(url=initial_url) as response: final_url = response.url print(f"with aioresponses, final_url: {final_url}") initial_url = "http://acme.com/concat?strings=foo&strings=bar&strings=baz" print(f"without aioresponses, initial_url: {initial_url}") m.post(initial_url) async with aiohttp.ClientSession() as session: async with session.post(url=initial_url) as response: final_url = response.url print(f"without aioresponses, final_url: {final_url}") asyncio.run(main()) ~/tmp $ python mwe.py with aioresponses, initial_url: http://acme.com/concat?strings=foo&strings=bar&strings=baz with aioresponses, final_url: http://acme.com/concat?strings=bar&strings=baz&strings=foo without aioresponses, initial_url: http://acme.com/concat?strings=foo&strings=bar&strings=baz without aioresponses, final_url: http://acme.com/concat?strings=foo&strings=bar&strings=baz ~/tmp $
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The text was updated successfully, but these errors were encountered: