* Migrate additional test modules away from the deprecated framework, taking care to demonstrate both unittest- and pytest-style testing. * Add an additional Cookie class and parse cookies in the Result object to facilitate cookie testing. * Extend BoundStream to implement more of the IO protocol so that it works with mock WSGI input objects (and potentially improves compatibility as a drop-in replacement for the native WSGI input object). * Disable pypy3 testing on Travis, since it uses a buggy cookie impl, and also we don't support pypy3 (yet) since overall it isn't fully baked. * Specify latest pypy version for Travis testing, which has improved cookie handling.
21 lines
499 B
ReStructuredText
21 lines
499 B
ReStructuredText
.. _testing:
|
|
|
|
Testing
|
|
=======
|
|
|
|
.. automodule:: falcon.testing
|
|
:members: Result, Cookie,
|
|
simulate_request, simulate_get, simulate_head, simulate_post,
|
|
simulate_put, simulate_options, simulate_patch, simulate_delete,
|
|
TestClient, TestCase, SimpleTestResource, StartResponseMock,
|
|
capture_responder_args, rand_string, create_environ
|
|
|
|
Deprecated
|
|
----------
|
|
|
|
.. autoclass:: falcon.testing.TestBase
|
|
:members:
|
|
|
|
.. autoclass:: falcon.testing.TestResource
|
|
:members:
|