From 0cd82188a6f778b850defcba47ba1b8d70bc24ab Mon Sep 17 00:00:00 2001 From: Archmonger <16909269+Archmonger@users.noreply.github.com> Date: Wed, 11 Dec 2024 20:29:10 -0800 Subject: [PATCH] Add test retries --- pyproject.toml | 3 +++ src/reactpy_django/forms/transforms.py | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index cdfc01b5..44be8029 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -97,6 +97,9 @@ extra-dependencies = [ "django-bootstrap5", ] matrix-name-format = "{variable}-{value}" +# TODO: Remove the `retries` value once we fix flakiness of `test_sync_form_events` +# https://github.com/reactive-python/reactpy-django/issues/272 +retries = 5 # Django 4.2 [[tool.hatch.envs.hatch-test.matrix]] diff --git a/src/reactpy_django/forms/transforms.py b/src/reactpy_django/forms/transforms.py index 58e98de4..4eadbd83 100644 --- a/src/reactpy_django/forms/transforms.py +++ b/src/reactpy_django/forms/transforms.py @@ -131,8 +131,8 @@ def _do_nothing_event(*args, **kwargs): """A placeholder event function that does nothing.""" -# TODO: After the bulk of this file to ReactPy core, we should create some kind of script that will -# auto-generate this into a file dump. The current implementation of manually copy-pasting it isn't ideal. +# TODO: Create a script that will auto-generate this into a file dump. +# The current implementation of manually copy-pasting it isn't ideal. # https://react.dev/reference/react-dom/components/common#common-props SPECIAL_PROPS = r""" children: A React node (an element, a string, a number, a portal, an empty node like null, undefined and booleans, or an array of other React nodes). Specifies the content inside the component. When you use JSX, you will usually specify the children prop implicitly by nesting tags like