Skip to content

Commit cff8119

Browse files
committed
Merge branch 'dev' into master-2.4.1
2 parents 8c73426 + e774908 commit cff8119

File tree

3 files changed

+18
-2
lines changed

3 files changed

+18
-2
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22
All notable changes to `dash` will be documented in this file.
33
This project adheres to [Semantic Versioning](https://semver.org/).
44

5+
## [2.4.1] - 2022-05-11
6+
7+
### Fixed
8+
9+
- Fix [#2045](https://github.com/plotly/dash/issues/2045) import error when using pytest but `dash[testing]` is not installed.
10+
511
## [2.4.0] - 2022-05-11
612

713
### Added

dash/testing/plugin.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# pylint: disable=missing-docstring,redefined-outer-name
2+
from typing import Any
3+
24
import pytest
35
from .consts import SELENIUM_GRID_DEFAULT
46

@@ -13,7 +15,15 @@
1315
from dash.testing.browser import Browser
1416
from dash.testing.composite import DashComposite, DashRComposite, DashJuliaComposite
1517
except ImportError:
16-
pass
18+
# Running pytest without dash[testing] installed.
19+
ThreadedRunner = Any
20+
ProcessRunner = Any
21+
RRunner = Any
22+
JuliaRunner = Any
23+
Browser = Any
24+
DashComposite = Any
25+
DashRComposite = Any
26+
DashJuliaComposite = Any
1727

1828

1929
def pytest_addoption(parser):

dash/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "2.4.0"
1+
__version__ = "2.4.1"

0 commit comments

Comments
 (0)