pytest-tornado
pytest-tornado copied to clipboard
A py.test plugin providing fixtures and markers to simplify testing of asynchronous tornado applications.
Hello... I want to use some like ```python response = yield http_client.fetch( "http://pytest.localhost:port/login/", method="POST", headers=basic_headers, body="", raise_error=False, ) ``` but when run the test I got: [Errno -2] Name or...
[httpx](https://github.com/encode/httpx) is more friendly.
Is there, even if unintentionally, support for testing a Tornado WebSocket server with pytest-tornado? If yes, how would you go to make a basic example, similar to the one shown...
fetch() should take a path, use base_url to convert it to an absolute url for the test server. Needs to work inside the gen_test decorator, so probably can't just run_sync...
I'm currently trying to mock a coroutine that is called inside the `.get` method of a handler. Let's call it, `dummy_function`. ```python from tornado.web import RequestHandler from dummy import dummy_function...
From @vidartf's comment in #50: > The only possible improvement I can see would be to give a warning if a user requests a mismatched secure/non-secure server/client/port tuple. Could be...
Add support to pytest to setup.py usgin pytest-runner. It replaces default unittest over build. This way, using pytest, some plugins can be added to deployment pipeline, like: -pep8 -cov
I noticed a subtle problem when using IOLoop.current(instance=True) in multi-threaded applications when using pytest-tornado: If tornado starts the first IOLoop (on the main thread) it sets IOLoop._instance to point to...
I came across something weird with python3 I had one test that needed the functionality of another, i.e. the first modifies the server-state in a way that the second test...
Hi! I am learning tornado and to do so I created a project: https://github.com/felippemr/resistance I am trying to change my test suite to use pytest-tornado but I keep receiving this...