6.1. Integration Tests¶
The purpose of these tests is to test server functionality without mocking. These tests are not so much about attaining code coverage, as they are about ensuring that OmicronServer “plays nice” with other components.
6.1.1. Test Database Round-Trip¶
Tests that the server can successfully write and read from the database in a “Round Trip”
6.1.2. Test Auth¶
Contains integration tests for
auth, performing authentication without stubbing out any functionality.
- class
tests.integration.test_auth.TestAuth(methodName='runTest')[source]¶Base class for testing
auth
- class
tests.integration.test_auth.TestVerifyPassword(methodName='runTest')[source]¶Tests the
auth.verify_password()callback
test_verify_correct_uname_bad_pwd()[source]¶Tests that the callback returns
Falseif the correct username but an incorrect password are supplied.
- class
tests.integration.test_auth.TestVerifyToken(methodName='runTest')[source]¶Tests
auth._verify_token()
setUp()[source]¶Starts up the server, and requests an authentication token using the correct login credentials.