Skip to content

Commit 2a7175c

Browse files
committed
added condition to skip app testing
1 parent 9f521ff commit 2a7175c

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

tests/test_unit_app.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import sys
2+
13
import pytest
24
from nicegui import ui
35
from nicegui.testing import User
@@ -6,6 +8,10 @@
68

79
pytest_plugins = ["nicegui.testing.user_plugin"]
810

11+
pytestmark = pytest.mark.skipif(
12+
sys.version_info < (3, 9), reason="NiceGUI requires Python 3.9+"
13+
)
14+
915

1016
@pytest.mark.module_under_test(_app)
1117
async def test_run_mapper(user: User) -> None:

0 commit comments

Comments
 (0)