소스 검색

prevent issues with #3214 (#3237)

benedikt-bartscher 1 년 전
부모
커밋
b3c06bd139
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      reflex/testing.py

+ 3 - 0
reflex/testing.py

@@ -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,