Testing module reference¶
Contains various test-related utilities.
See tests/ for examples of testing Micro.Web application
- class micro.web.testing.AppTestCase(methodName='runTest')[source]¶
A test case for application which is capable of creating application test servers.
- make_request(method, url, *args, **kwargs)[source]¶
Make a request to a previously run application
Parameters: - method (str) – HTTP method to use for request
- url – A relative URL to be requested
- args – Arguments to be proxied to aiohttp.client.request
- kwargs – Keyworded arguments to be proxied to aiohttp.client.request
Returns: Waiter for response
Return type: asyncio.Task