devices.tests.conftestΒΆ

pytest configuration for the tests in the devices app.

FunctionsΒΆ

enable_db_access_for_all_tests(db)

Fixture to enable database access for all tests.

mock_models()

Creates mock models.

create_mock_models()

Fixture to create mock CA, domain, device, and credential models for testing.

Module ContentsΒΆ

devices.tests.conftest.enable_db_access_for_all_tests(db)[source]ΒΆ

Fixture to enable database access for all tests.

Parameters:

db (None)

Return type:

None

devices.tests.conftest.mock_models()[source]ΒΆ

Creates mock models.

Return type:

dict[str, Any]

devices.tests.conftest.create_mock_models()[source]ΒΆ

Fixture to create mock CA, domain, device, and credential models for testing.

Return type:

dict[str, Any]