diff --git a/reflex/testing.py b/reflex/testing.py index 1d1ee0068..b07071509 100644 --- a/reflex/testing.py +++ b/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