6.2.1. Top-Level Modules

Contains documentation for unit tests in top-level modules in the unit testing library

6.2.1.1. API Server

Contains unit tests for api_server

class tests.unit.test_api_server.TestAPIServer(methodName='runTest')[source]

Base class for unit tests in api_server

classmethod setUpClass()[source]

Sets up basic parameters for testing in api_server.

classmethod tearDownClass()[source]

Tear down the tests

class tests.unit.test_api_server.TestGetAuthToken(methodName='runTest')[source]

Tests api_server.create_token()

setUp()[source]

Set up the tests by creating a mock token, and assigning it as a return value to self.user, which is assigned to g.user.

class tests.unit.test_api_server.TestHelloWorld(methodName='runTest')[source]

Tests api_server.hello_world()

test_hello_world()[source]

Tests that a request to the server’s root endpoint returns 200, indicating that the server has set up and is running successfully.

class tests.unit.test_api_server.TestRevokeToken(methodName='runTest')[source]

Tests api_server.revoke_token()

6.2.1.2. Auth

Contains unit tests for auth

6.2.1.3. Config

6.2.1.4. Decorators

6.2.1.5. JSON Schema Parser

Contains unit tests for json_schema_parser