Skip to content

Commit 70cb572

Browse files
committed
Improved default transforms for vdom_to_html
1 parent bdac416 commit 70cb572

File tree

5 files changed

+608
-154
lines changed

5 files changed

+608
-154
lines changed

src/reactpy/testing/common.py

+2-8
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
from reactpy.config import REACTPY_TESTS_DEFAULT_TIMEOUT, REACTPY_WEB_MODULES_DIR
1717
from reactpy.core._life_cycle_hook import HOOK_STACK, LifeCycleHook
1818
from reactpy.core.events import EventHandler, to_event_handler_function
19+
from reactpy.utils import str_to_bool
1920

2021

2122
def clear_reactpy_web_modules_dir() -> None:
@@ -29,14 +30,7 @@ def clear_reactpy_web_modules_dir() -> None:
2930

3031

3132
_DEFAULT_POLL_DELAY = 0.1
32-
GITHUB_ACTIONS = os.getenv("GITHUB_ACTIONS", "False") in {
33-
"y",
34-
"yes",
35-
"t",
36-
"true",
37-
"on",
38-
"1",
39-
}
33+
GITHUB_ACTIONS = str_to_bool(os.getenv("GITHUB_ACTIONS", ""))
4034

4135

4236
class poll(Generic[_R]): # noqa: N801

0 commit comments

Comments
 (0)