Skip to content

Commit 0e60b47

Browse files
committed
Remove usage of anyio pytest marker
1 parent 9f318fd commit 0e60b47

File tree

2 files changed

+0
-15
lines changed

2 files changed

+0
-15
lines changed

tests/test_reactjs/test_modules.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ async def display(browser):
1414
yield new_display
1515

1616

17-
@pytest.mark.anyio
1817
async def test_nested_client_side_components(display: DisplayFixture):
1918
# Module A
2019
ComponentA = component_from_string(
@@ -54,7 +53,6 @@ def App():
5453
await display.page.wait_for_selector("#server-side")
5554

5655

57-
@pytest.mark.anyio
5856
async def test_interleaved_client_server_components(display: DisplayFixture):
5957
# Module C
6058
ComponentC = component_from_string(

tests/test_reactjs/test_modules_from_npm.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ def App():
3434
assert "btn-primary" in classes
3535

3636

37-
@pytest.mark.anyio
3837
@pytest.mark.flaky(reruns=5, reruns_delay=2)
3938
async def test_component_from_npm_material_ui(display: DisplayFixture):
4039
Button = component_from_npm("@mui/material", "Button")
@@ -51,7 +50,6 @@ def App():
5150
assert "MuiButton-root" in classes
5251

5352

54-
@pytest.mark.anyio
5553
@pytest.mark.flaky(reruns=5, reruns_delay=2)
5654
async def test_component_from_npm_antd(display: DisplayFixture):
5755
# Try antd v4 which might be more stable with esm.sh
@@ -68,7 +66,6 @@ def App():
6866
assert "ant-btn" in classes
6967

7068

71-
@pytest.mark.anyio
7269
@pytest.mark.flaky(reruns=5, reruns_delay=2)
7370
async def test_component_from_npm_chakra_ui(display: DisplayFixture):
7471
ChakraProvider, Button = component_from_npm(
@@ -88,7 +85,6 @@ def App():
8885
assert "chakra-button" in classes
8986

9087

91-
@pytest.mark.anyio
9288
@pytest.mark.flaky(reruns=5, reruns_delay=2)
9389
async def test_component_from_npm_semantic_ui_react(display: DisplayFixture):
9490
Button = component_from_npm("semantic-ui-react", "Button")
@@ -105,7 +101,6 @@ def App():
105101
assert "button" in classes
106102

107103

108-
@pytest.mark.anyio
109104
@pytest.mark.flaky(reruns=5, reruns_delay=2)
110105
async def test_component_from_npm_mantine(display: DisplayFixture):
111106
MantineProvider, Button = component_from_npm(
@@ -123,7 +118,6 @@ def App():
123118
assert "mantine-Button-root" in classes
124119

125120

126-
@pytest.mark.anyio
127121
@pytest.mark.flaky(reruns=5, reruns_delay=2)
128122
async def test_component_from_npm_fluent_ui(display: DisplayFixture):
129123
PrimaryButton = component_from_npm("@fluentui/react", "PrimaryButton")
@@ -139,7 +133,6 @@ def App():
139133
assert "ms-Button" in classes
140134

141135

142-
@pytest.mark.anyio
143136
@pytest.mark.flaky(reruns=5, reruns_delay=2)
144137
async def test_component_from_npm_blueprint(display: DisplayFixture):
145138
Button = component_from_npm("@blueprintjs/core", "Button")
@@ -155,7 +148,6 @@ def App():
155148
assert any(c.startswith("bp") and "button" in c for c in classes.split())
156149

157150

158-
@pytest.mark.anyio
159151
@pytest.mark.flaky(reruns=5, reruns_delay=2)
160152
async def test_component_from_npm_grommet(display: DisplayFixture):
161153
Grommet, Button = component_from_npm("grommet", ["Grommet", "Button"])
@@ -171,7 +163,6 @@ def App():
171163
assert await button.inner_text() == "Click me"
172164

173165

174-
@pytest.mark.anyio
175166
@pytest.mark.flaky(reruns=5, reruns_delay=2)
176167
async def test_component_from_npm_evergreen(display: DisplayFixture):
177168
Button = component_from_npm("evergreen-ui", "Button")
@@ -185,7 +176,6 @@ def App():
185176
assert await button.inner_text() == "Click me"
186177

187178

188-
@pytest.mark.anyio
189179
@pytest.mark.flaky(reruns=5, reruns_delay=2)
190180
async def test_component_from_npm_react_spinners(display: DisplayFixture):
191181
ClipLoader = component_from_npm("react-spinners", "ClipLoader")
@@ -209,7 +199,6 @@ def App():
209199
assert await loader.is_visible()
210200

211201

212-
@pytest.mark.anyio
213202
@pytest.mark.flaky(reruns=5, reruns_delay=2)
214203
async def test_nested_npm_components(display: DisplayFixture):
215204
# Use Chakra UI Provider and Box, and nest a React Bootstrap Button inside
@@ -246,7 +235,6 @@ def App():
246235
assert "btn" in classes
247236

248237

249-
@pytest.mark.anyio
250238
@pytest.mark.flaky(reruns=5, reruns_delay=2)
251239
async def test_interleaved_npm_and_server_components(display: DisplayFixture):
252240
Card = component_from_npm("antd", "Card", version="4.24.15")
@@ -279,7 +267,6 @@ def App():
279267
assert "MUI BUTTON" in await button.inner_text() # MUI capitalizes
280268

281269

282-
@pytest.mark.anyio
283270
@pytest.mark.flaky(reruns=5, reruns_delay=2)
284271
async def test_complex_nested_material_ui(display: DisplayFixture):
285272
# Import multiple components from @mui/material

0 commit comments

Comments
 (0)