From 38d4b987a647159dbf66900572baa8392e511a88 Mon Sep 17 00:00:00 2001 From: Chuck McCallum Date: Tue, 26 Nov 2024 16:15:17 -0500 Subject: [PATCH] increase timeout --- .github/workflows/test.yml | 8 ++------ tests/test_app.py | 4 ++++ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7682961..86549e7 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -24,16 +24,12 @@ jobs: with: python-version: ${{ matrix.python-version }} - - name: Install flit - run: pip install flit + - name: Install subset of dev deps + run: pip install flit pytest pytest-playwright - name: Install production deps run: flit install --deps production - - name: Install subset of test deps - run: - pip install pytest pytest-playwright - - name: Install browsers # Install just one browser instead of the default three. # https://playwright.dev/python/docs/browsers#managing-browser-binaries diff --git a/tests/test_app.py b/tests/test_app.py index 063acdf..76127bb 100644 --- a/tests/test_app.py +++ b/tests/test_app.py @@ -23,6 +23,10 @@ def test_demo_app(page: Page, demo_app: ShinyAppProc): # pragma: no cover def test_default_app(page: Page, default_app: ShinyAppProc): # pragma: no cover + # Default 5s timeout works for me in dev, + # but in CI or fresh venv it is slower. + expect.set_options(timeout=10_000) + pick_dataset_text = "How many rows of the CSV" perform_analysis_text = "Select numeric columns of interest" download_results_text = "You can now make a differentially private release"