notifications.tests.conftest

Fixtures for the NotificationModel model and related functionality in the notifications app.

Functions

setup_test_issuing_ca()

Use custom management command to create a test Issuing CA.

test_domain(setup_test_issuing_ca)

Create a domain linked to the test issuing CA.

test_device(test_domain)

Create a test device fixture.

test_message()

Create a NotificationMessageModel used for custom notifications.

test_status()

Create a notification status object.

Module Contents

notifications.tests.conftest.setup_test_issuing_ca()[source]

Use custom management command to create a test Issuing CA.

Return type:

pki.models.CaModel

notifications.tests.conftest.test_domain(setup_test_issuing_ca)[source]

Create a domain linked to the test issuing CA.

Parameters:

setup_test_issuing_ca (pki.models.CaModel)

Return type:

pki.models.DomainModel

notifications.tests.conftest.test_device(test_domain)[source]

Create a test device fixture.

Parameters:

test_domain (pki.models.DomainModel)

Return type:

devices.models.DeviceModel

notifications.tests.conftest.test_message()[source]

Create a NotificationMessageModel used for custom notifications.

Return type:

notifications.models.NotificationMessageModel

notifications.tests.conftest.test_status()[source]

Create a notification status object.

Return type:

notifications.models.NotificationStatus