From 98a4f5813479a7f7eea2c5c3421da2461345d123 Mon Sep 17 00:00:00 2001 From: benedikt-bartscher <31854409+benedikt-bartscher@users.noreply.github.com> Date: Thu, 18 Apr 2024 23:00:42 +0200 Subject: [PATCH] app_source can be partial (#3100) --- reflex/testing.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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