app_source can be partial (#3100)

This commit is contained in:
benedikt-bartscher 2024-04-18 23:00:42 +02:00 committed by GitHub
parent 36f564d5b0
commit 98a4f58134
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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