pki.tests.conftest¶
pytest configuration for the tests in the PKI app.
Attributes¶
Functions¶
Fixture to enable database access for all tests. |
|
Generate a reusable RSA private key. |
|
Generate a reusable EC private key. |
|
Fixture for a testing CaModel instance. |
|
|
Fixture for a DomainModel instance using a valid issuing CA. |
Module Contents¶
- pki.tests.conftest.enable_db_access_for_all_tests(db)[source]¶
Fixture to enable database access for all tests.
- Parameters:
db (None)
- Return type:
None
- pki.tests.conftest.rsa_private_key()[source]¶
Generate a reusable RSA private key.
- Return type:
cryptography.hazmat.primitives.asymmetric.rsa.RSAPrivateKey
- pki.tests.conftest.ec_private_key()[source]¶
Generate a reusable EC private key.
- Return type:
cryptography.hazmat.primitives.asymmetric.ec.EllipticCurvePrivateKey