Browse Source

app_source can be partial (#3100)

benedikt-bartscher 1 year ago
parent
commit
98a4f58134
1 changed files with 3 additions and 1 deletions
  1. 3 1
      reflex/testing.py

+ 3 - 1
reflex/testing.py

@@ -112,7 +112,9 @@ class AppHarness:
     """AppHarness executes a reflex app in-process for testing."""
 
     app_name: str
-    app_source: Optional[types.FunctionType | types.ModuleType] | str
+    app_source: Optional[
+        types.FunctionType | types.ModuleType | str | functools.partial
+    ]
     app_path: pathlib.Path
     app_module_path: pathlib.Path
     app_module: Optional[types.ModuleType] = None