Skip to content

Commit 8245b64

Browse files
committed
Reduce GitHub CI flakiness
1 parent 8c6732c commit 8245b64

File tree

11 files changed

+22
-0
lines changed

11 files changed

+22
-0
lines changed

tests/conftest.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
)
1616
from reactpy.testing.display import _playwright_visible
1717

18+
from . import pytestmark # noqa: F401
19+
1820
REACTPY_ASYNC_RENDERING.set_current(True)
1921
REACTPY_DEBUG.set_current(True)
2022

tests/test_client.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
from tests.tooling.common import DEFAULT_TYPE_DELAY
77
from tests.tooling.hooks import use_counter
88

9+
from . import pytestmark # noqa: F401
10+
911
JS_DIR = Path(__file__).parent / "js"
1012

1113

tests/test_core/test_component.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import reactpy
22
from reactpy.testing import DisplayFixture
33

4+
from .. import pytestmark # noqa: F401
5+
46

57
def test_component_repr():
68
@reactpy.component

tests/test_core/test_events.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
from reactpy.types import Event
1414
from tests.tooling.common import DEFAULT_TYPE_DELAY
1515

16+
from .. import pytestmark # noqa: F401
17+
1618

1719
def test_event_handler_repr():
1820
handler = EventHandler(lambda: None)

tests/test_core/test_hooks.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
from reactpy.utils import Ref
1414
from tests.tooling.common import DEFAULT_TYPE_DELAY, update_message
1515

16+
from .. import pytestmark # noqa: F401
17+
1618

1719
async def test_must_be_rendering_in_layout_to_use_hooks():
1820
@reactpy.component

tests/test_html.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
from tests.tooling.common import DEFAULT_TYPE_DELAY
88
from tests.tooling.hooks import use_counter
99

10+
from . import pytestmark # noqa: F401
11+
1012

1113
async def test_script_re_run_on_content_change(display: DisplayFixture):
1214
@component

tests/test_pyscript/test_components.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
from reactpy.testing import BackendFixture, DisplayFixture
99
from reactpy.testing.backend import root_hotswap_component
1010

11+
from .. import pytestmark # noqa: F401
12+
1113

1214
@pytest.fixture(scope="module")
1315
async def display(browser):

tests/test_reactjs/test_modules.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
from reactpy.reactjs import component_from_string, import_reactjs
88
from reactpy.testing import BackendFixture, DisplayFixture
99

10+
from .. import pytestmark # noqa: F401
11+
1012
JS_FIXTURES_DIR = Path(__file__).parent / "js_fixtures"
1113

1214

tests/test_sample.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
from reactpy.testing import DisplayFixture
22
from tests.sample import SampleApp
33

4+
from . import pytestmark # noqa: F401
5+
46

57
async def test_sample_app(display: DisplayFixture):
68
await display.show(SampleApp)

tests/test_testing.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
from reactpy.testing.display import DisplayFixture
1111
from tests.sample import SampleApp
1212

13+
from . import pytestmark # noqa: F401
14+
1315

1416
def test_assert_reactpy_logged_does_not_suppress_errors():
1517
with pytest.raises(RuntimeError, match=r"expected error"):

0 commit comments

Comments
 (0)