trustpoint.tests.test_settings

Tests for the settings module.

Functions

set_test_env(monkeypatch)

Set environment variables for tests.

test_debug_setting()

Ensure DEBUG is correctly set for development.

test_database_settings(monkeypatch)

Ensure database settings are set correctly.

test_database_fallback_to_sqlite(monkeypatch)

Ensure database falls back to SQLite when PostgreSQL is unavailable.

test_secret_key()

Ensure the secret key is defined.

test_installed_apps()

Check if critical apps are installed.

test_logging_configuration()

Ensure logging configuration is properly configured.

test_static_and_media_settings()

Verify static and media file settings.

test_public_paths()

Ensure PUBLIC_PATHS is defined and contains expected values.

test_language_settings()

Verify language and internationalization settings.

Module Contents

trustpoint.tests.test_settings.set_test_env(monkeypatch)[source]

Set environment variables for tests.

trustpoint.tests.test_settings.test_debug_setting()[source]

Ensure DEBUG is correctly set for development.

trustpoint.tests.test_settings.test_database_settings(monkeypatch)[source]

Ensure database settings are set correctly.

trustpoint.tests.test_settings.test_database_fallback_to_sqlite(monkeypatch)[source]

Ensure database falls back to SQLite when PostgreSQL is unavailable.

trustpoint.tests.test_settings.test_secret_key()[source]

Ensure the secret key is defined.

trustpoint.tests.test_settings.test_installed_apps()[source]

Check if critical apps are installed.

trustpoint.tests.test_settings.test_logging_configuration()[source]

Ensure logging configuration is properly configured.

trustpoint.tests.test_settings.test_static_and_media_settings()[source]

Verify static and media file settings.

trustpoint.tests.test_settings.test_public_paths()[source]

Ensure PUBLIC_PATHS is defined and contains expected values.

trustpoint.tests.test_settings.test_language_settings()[source]

Verify language and internationalization settings.