Registry / testing / dash-testing-stub

dash-testing-stub

JSON →
library0.0.2pypypiunverified

dash-testing-stub is a lightweight Python package, currently at version 0.0.2. Its sole purpose is to serve as a marker or stub dependency within the `dash[testing]` extra, signaling the availability for optional loading of the `pytest-dash` plugin. It is not intended for direct user import or interaction, acting purely as an internal mechanism for conditional feature enablement in Dash testing environments. It is released as part of the official Dash framework.

pip install dash[testing]
INSTALL
IMPORT
SIG · DASH-TESTING-STUB
D
dash-testing-stub
testingpythonv0.0.2
Install
6.5s avg
Import
Disk
143MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
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
musl
py 3.103.920 runs
installs and imports cleanly · install 0.0s · import 0.000s · 187.6MB
glibc
py 3.103.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.
fix
If 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.
fix
Always 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.
fix
Treat `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.

Agent activity
23 hits · last 30 days
node
18
OpenAI (training)
1
Resources
dash-testing-stub — pip install dash-testing-stub · libregistry