Browse Source

test without test_user_simulation

Falko Schindler 1 month ago
parent
commit
ca64540971
2 changed files with 5 additions and 8 deletions
  1. 1 3
      .github/workflows/test.yml
  2. 4 5
      nicegui/testing/general_fixtures.py

+ 1 - 3
.github/workflows/test.yml

@@ -28,7 +28,7 @@ jobs:
   test:
     strategy:
       matrix:
-        python: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
+        python: ["3.8"]
       fail-fast: false
     runs-on: ubuntu-latest
     timeout-minutes: 40
@@ -50,8 +50,6 @@ jobs:
           poetry run pip install -r tests/requirements.txt
           # try fix issue with importlib_resources
           poetry run pip install importlib-resources
-      - name: test startup
-        run: poetry run ./test_startup.sh
       - name: setup chromedriver
         uses: nanasess/setup-chromedriver@v2.3.0
       - name: pytest

+ 4 - 5
nicegui/testing/general_fixtures.py

@@ -1,4 +1,3 @@
-import asyncio
 import importlib
 from copy import copy
 from typing import Generator, List, Type
@@ -55,10 +54,10 @@ def nicegui_reset_globals() -> Generator[None, None, None]:
 
     yield
 
-    loop = asyncio.get_event_loop()
-    for storage in app.storage._users.values():  # pylint: disable=protected-access
-        loop.run_until_complete(storage.close())
-    app.reset()
+    # loop = asyncio.get_event_loop()
+    # for storage in app.storage._users.values():  # pylint: disable=protected-access
+    #     loop.run_until_complete(storage.close())
+    # app.reset()
 
     # restore initial defaults
     for t in element_types: