prevent issues with #3214 (#3237)

This commit is contained in:
benedikt-bartscher 2024-05-07 03:34:16 +02:00 committed by GitHub
parent 57476966f3
commit b3c06bd139
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,4 +1,5 @@
"""reflex.testing - tools for testing reflex apps."""
from __future__ import annotations
import asyncio
@ -166,6 +167,8 @@ class AppHarness:
app_name = app_source.__name__
app_name = app_name.lower()
while "__" in app_name:
app_name = app_name.replace("__", "_")
return cls(
app_name=app_name,
app_source=app_source,