Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ jobs:
- 'dash/dash-renderer/**'
- 'dash/_callback.py'
- 'dash/_callback_context.py'
- 'tests/background_callback/**'
- 'tests/async_tests/**'
- 'requirements/**'

build:
Expand Down Expand Up @@ -263,6 +265,10 @@ jobs:
cd bgtests
touch __init__.py
pytest --headless --nopercyfinalize tests/background_callback -v -s

- name: Run Async Callback Tests
run: |
cd bgtests
pytest --headless --nopercyfinalize tests/async_tests -v -s

table-unit:
Expand Down
3 changes: 3 additions & 0 deletions tests/async_tests/test_async_callbacks.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import json
import time

import flaky

from multiprocessing import Lock, Value
import pytest

Expand All @@ -27,6 +29,7 @@
from tests.utils import is_dash_async


@flaky.flaky(max_runs=3)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't know flaky existed - nice catch.

def test_async_cbsc001_simple_callback(dash_duo):
if not is_dash_async():
return
Expand Down