MCPcopy Index your code
hub / github.com/reflex-dev/reflex / app_with_processor

Function app_with_processor

tests/units/test_app.py:3402–3417  ·  view source on GitHub ↗

Create an App with a mocked event processor that has a root context. Returns: An App instance with a mock event processor and root context.

()

Source from the content-addressed store, hash-verified

3400
3401@pytest.fixture
3402def app_with_processor() -> App:
3403 """Create an App with a mocked event processor that has a root context.
3404
3405 Returns:
3406 An App instance with a mock event processor and root context.
3407 """
3408 app = App(_state=EmptyState)
3409 root_context = EventContext(
3410 token="",
3411 state_manager=StateManagerMemory(),
3412 enqueue_impl=AsyncMock(),
3413 )
3414 processor = Mock()
3415 processor._root_context = root_context
3416 app._event_processor = processor
3417 return app
3418
3419
3420@pytest.fixture

Callers

nothing calls this directly

Calls 3

AppClass · 0.90
EventContextClass · 0.90
StateManagerMemoryClass · 0.90

Tested by

no test coverage detected