Install & Compatibility
Where this runs
tested against v0.0.2 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.920 runs
installs and imports cleanly · install 0.0s · import 0.000s · 187.6MB
glibcpy 3.10–3.920 runs
installs and imports cleanly · install 6.5s · import 0.000s · 18MB
143MB installed
● package 143MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
*
✓ This package is not meant for direct import.
✗ from dash_testing_stub import SomeSymbol
dash-testing-stub is an empty stub package. Its presence is detected by `dash[testing]` to enable the pytest-dash plugin. It exports no user-facing symbols.
To 'use' `dash-testing-stub`, you typically install `dash[testing]`, which includes it. Then, you can write pytest tests for your Dash applications using the `dash_duo` fixture provided by the `pytest-dash` plugin. The stub package itself has no API to call.
# 1. Install Dash with testing extras:
# pip install dash[testing]
# 2. Create a test file (e.g., test_app.py):
import dash
from dash import html
import pytest
@pytest.fixture
def dash_app():
app = dash.Dash(__name__)
app.layout = html.Div([html.H1("Hello Dash Testing!"), html.Div(id='output-div')])
return app
def test_initial_layout(dash_duo, dash_app):
dash_duo.start_server(dash_app)
dash_duo.wait_for_text_to_equal("h1", "Hello Dash Testing!", timeout=4)
assert dash_duo.driver.find_element_by_tag_name("h1").text == "Hello Dash Testing!"
# 3. Run pytest from your terminal in the same directory:
# pytest
Debug
Known issues
gotchaDo not attempt to import specific symbols or functionalities from `dash-testing-stub`. It is an empty stub package and contains no Python code beyond its `__init__.py` (which is empty). Its purpose is solely to act as a flag for the `dash[testing]` extra.fixIf you need Dash testing capabilities, install `dash[testing]` and use the `pytest-dash` plugin's fixtures (like `dash_duo`) in your tests. Do not import anything directly from `dash_testing_stub` in your application or test code.
affects: 0.0.1 - 0.0.2 (all versions)
gotchaInstalling `dash-testing-stub` directly via `pip install dash-testing-stub` will not provide the full testing suite. It only installs the empty stub package. The complete `pytest-dash` plugin and related tools are part of the `dash[testing]` extra.fixAlways install the testing dependencies using `pip install dash[testing]`. This ensures all necessary components, including the `pytest-dash` plugin, are correctly installed and configured.
affects: 0.0.1 - 0.0.2 (all versions)
gotchaThis package is an internal dependency of Dash's testing infrastructure. It is not designed for independent use or extension.fixTreat `dash-testing-stub` as an opaque dependency. Focus on the `dash[testing]` ecosystem and `pytest-dash` plugin for your testing needs.
affects: 0.0.1 - 0.0.2 (all versions)
Upgrade
Version history
0.0.2latest on PyPI · released Feb 9, 2023
Audit
Dependencies
No dependency data recorded yet.