Option C oc_diagnostics
Loading...
Searching...
No Matches
test_ui_event_logger Namespace Reference

Functions

 test_ui_event_logger_import ()
 test_required_store_id_constant ()
 test_ui_logger_custom_props ()

Variables

 _REPO_ROOT = os.path.normpath(os.path.join(os.path.dirname(__file__), ".."))
 reason

Detailed Description

Regression Tests — ui_event_logger
=====================================

Purpose
-------
Verify that ``ui_event_logger`` imports cleanly, exposes the required public
API surface, and registers callbacks correctly with custom event properties.

Responsibilities
----------------
- Confirm the module imports without error and exposes ``register_callbacks()``.
- Confirm ``REQUIRED_STORE_ID`` has the expected constant value.
- Confirm ``register_callbacks()`` accepts a custom ``UI_EVENT_PROPERTIES``
  tuple with fewer properties than the default five.

Diagnostics
-----------
Domain: TEST
Levels:
    L2 — lifecycle
    L3 — semantic details
    L4 — deep tracing

Contracts
---------
- All tests are skipped automatically when Dash is not installed.
- Must not permanently modify oc_diagnostics global state.
- Must restore all patched globals in finally blocks.
- Must not start servers or require network access.
- Must run deterministically across repeated invocations.

Function Documentation

◆ test_required_store_id_constant()

test_ui_event_logger.test_required_store_id_constant ( )
REQUIRED_STORE_ID has the expected constant value.

Definition at line 75 of file test_ui_event_logger.py.

◆ test_ui_event_logger_import()

test_ui_event_logger.test_ui_event_logger_import ( )
ui_event_logger module imports cleanly and exposes register_callbacks().

Definition at line 64 of file test_ui_event_logger.py.

◆ test_ui_logger_custom_props()

test_ui_event_logger.test_ui_logger_custom_props ( )
register_callbacks() accepts UI_EVENT_PROPERTIES with a reduced property set.

Definition at line 86 of file test_ui_event_logger.py.

Variable Documentation

◆ _REPO_ROOT

test_ui_event_logger._REPO_ROOT = os.path.normpath(os.path.join(os.path.dirname(__file__), ".."))
protected

Definition at line 45 of file test_ui_event_logger.py.

◆ reason

test_ui_event_logger.reason

Definition at line 52 of file test_ui_event_logger.py.