sanic/tests
Ashley Sommer 5cf2144b3f Fix pickling blueprints
Change the string passed in the "name" section of the namedtuples in Blueprint to match the name of the Blueprint module attribute name.
This allows blueprints to be pickled and unpickled, without errors, which is a requirment of running Sanic in multiprocessing mode in Windows.
Added a test for pickling and unpickling blueprints
Added a test for pickling and unpickling sanic itself
Added a test for enabling multiprocessing on an app with a blueprint (only useful to catch this bug if the tests are run on Windows).
2018-11-04 15:04:12 +10:00
..
certs initial commit 2017-03-03 11:44:50 -05:00
performance Make golang performance test return JSON instead of string 2016-12-24 10:28:34 +01:00
static Add content_type flag to Sanic.static (#1267) 2018-07-20 22:31:15 -07:00
conftest.py simplified aiohttp version diffs, reverted worker import policy 2018-10-08 22:48:21 -04:00
test_bad_request.py Fix all test files lint errors. 2018-10-23 11:04:17 +02:00
test_blueprints.py Fix some lint errors and warnings in tests/test_blueprints.py. 2018-10-14 16:09:47 +02:00
test_config.py Change the config test to remove NamedTemporaryFile 2018-10-11 17:34:46 +02:00
test_cookies.py Fix all test files lint errors. 2018-10-23 11:04:17 +02:00
test_create_task.py Fix all test files lint errors. 2018-10-23 11:04:17 +02:00
test_custom_protocol.py Reuse app fixture in tests 2018-08-26 16:43:14 +02:00
test_dynamic_routes.py Fix all test files lint errors. 2018-10-23 11:04:17 +02:00
test_exceptions_handler.py Fix all test files lint errors. 2018-10-23 11:04:17 +02:00
test_exceptions.py Reuse app fixture in tests 2018-08-26 16:43:14 +02:00
test_keep_alive_timeout.py Fix all test files lint errors. 2018-10-23 11:04:17 +02:00
test_logging.py Reuse app fixture in tests 2018-08-26 16:43:14 +02:00
test_middleware.py Fix all test files lint errors. 2018-10-23 11:04:17 +02:00
test_multiprocessing.py Fix pickling blueprints 2018-11-04 15:04:12 +10:00
test_named_routes.py Fix all test files lint errors. 2018-10-23 11:04:17 +02:00
test_payload_too_large.py Reuse app fixture in tests 2018-08-26 16:43:14 +02:00
test_redirect.py Merge pull request #1368 from yunstanford/fix-redirect 2018-10-23 15:12:02 -07:00
test_request_cancel.py Fix all test files lint errors. 2018-10-23 11:04:17 +02:00
test_request_data.py Fix all test files lint errors. 2018-10-23 11:04:17 +02:00
test_request_stream.py Fix all test files lint errors. 2018-10-23 11:04:17 +02:00
test_request_timeout.py Fix all test files lint errors. 2018-10-23 11:04:17 +02:00
test_requests.py Fix all test files lint errors. 2018-10-23 11:04:17 +02:00
test_response_timeout.py Add a test for the graceful CancelledError handling. The user app should _never_ see a CancelledError bubble up, nor should they be able to catch it, because the response is already sent at that point. 2018-08-06 15:02:12 +10:00
test_response.py Fix all test files lint errors. 2018-10-23 11:04:17 +02:00
test_routes.py Fix all test files lint errors. 2018-10-23 11:04:17 +02:00
test_server_events.py unittests passing on windows again 2018-09-29 13:54:47 -04:00
test_signal_handlers.py Fix all test files lint errors. 2018-10-23 11:04:17 +02:00
test_static.py Fix all test files lint errors. 2018-10-23 11:04:17 +02:00
test_url_building.py Fix all test files lint errors. 2018-10-23 11:04:17 +02:00
test_url_for_static.py Fix all test files lint errors. 2018-10-23 11:04:17 +02:00
test_utf8.py Reuse app fixture in tests 2018-08-26 16:43:14 +02:00
test_vhosts.py Fix all test files lint errors. 2018-10-23 11:04:17 +02:00
test_views.py Fix all test files lint errors. 2018-10-23 11:04:17 +02:00
test_worker.py Fix all test files lint errors. 2018-10-23 11:04:17 +02:00