Orchestrata Ultimate › Tests › Reference › kernel › audit
Tests reference — tests/kernel/audit
tests/kernel/audit — 1 test modules, 11 test functions. Source tree: tests/kernel/audit at commit 8a2cb42ad. Generated from the tests AST snapshot by scripts/gen-data-pages.py.
Prose pending.
Modules
| Module | Tests | Covers |
|---|---|---|
test_common.py |
11 | 1 |
Module details
tests/kernel/audit/test_common.py
source · 11 tests · 228 lines
Covers: kernel.audit._common
| Kind | Name | Line | Description |
|---|---|---|---|
| function | test_utc_now_returns_timezone_aware_utc_datetime |
62 | _utc_now() returns a datetime with tzinfo set to UTC. |
| function | test_utc_now_is_close_to_real_wall_clock |
70 | _utc_now() reflects the real current time, not a fixed/stale value. |
| function | test_utc_now_successive_calls_are_non_decreasing |
80 | Two back-to-back calls never go backwards in time. |
| function | test_redis_available_is_true_when_redis_installed |
93 | redis is a hard (non-optional) dependency declared in pyproject.toml, |
| function | test_graph_available_is_true_when_neo4j_installed |
103 | neo4j is likewise a hard dependency; the success path sets the flag True. |
| function | test_redis_reexported_on_module_for_queue_module |
110 | redis (the redis.asyncio submodule bound under that name) is |
| function | test_neo4j_presence_check_on_module |
117 | neo4j is imported as a presence check only (GRAPH_DRIVER_AVAILABLE); |
| function | test_logger_is_stdlib_logger_bound_to_module_name |
131 | |
| function | test_redis_import_error_sets_flag_false |
151 | Cover lines 13-14: except ImportError -> REDIS_AVAILABLE = False. |
| function | test_neo4j_import_error_sets_flag_false |
177 | Cover lines 20-21: except ImportError -> GRAPH_DRIVER_AVAILABLE = False. |
| function | test_both_backends_import_error_sets_both_flags_false |
197 | Both fallback branches together: redis and neo4j both unavailable. |