We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents dc6197d + 8c33276 commit bd3ccceCopy full SHA for bd3ccce
1 file changed
tests/integration/test_telemetry_compile.py
@@ -118,22 +118,15 @@ def telemetry_compile_harness(
118
The configured ``AppHarness`` instance after initialization.
119
"""
120
root = tmp_path_factory.mktemp("telemetry_compile_app")
121
- harness = AppHarness.create(
+ with AppHarness.create(
122
root=root,
123
app_source=functools.partial(
124
TelemetryCompileApp,
125
events_log_path=str(telemetry_events_log),
126
),
127
app_name="telemetry_compile_app",
128
- )
129
- harness._initialize_app()
130
- try:
+ ) as harness:
131
yield harness
132
- finally:
133
- if harness._registry_token is not None:
134
- from reflex_base.registry import RegistrationContext
135
-
136
- RegistrationContext.reset(harness._registry_token)
137
138
139
def _read_compile_events(events_log: Path) -> list[dict]:
0 commit comments