Skip to content

Commit

Permalink
Merge pull request #2461 from plotly/fix-2460
Browse files Browse the repository at this point in the history
Fix pytest make report
  • Loading branch information
T4rk1n authored Mar 17, 2023
2 parents 43cbf3b + 341000b commit 55b7674
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
All notable changes to `dash` will be documented in this file.
This project adheres to [Semantic Versioning](https://semver.org/).

## [UNRELEASED]

## Fixed

- [#2461](https://github.com/plotly/dash/pull/2461) Fix pytest plugin make report when testing not installed, fix [#2420](https://github.com/plotly/dash/issues/2420)

## [2.9.0] - 2023-03-16

## Breaking
Expand Down
4 changes: 2 additions & 2 deletions dash/testing/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,10 @@ def pytest_addhooks(pluginmanager):

@pytest.hookimpl(tryfirst=True, hookwrapper=True)
def pytest_runtest_makereport(item, call): # pylint: disable=unused-argument
if not _installed:
return
# execute all other hooks to obtain the report object
outcome = yield
if not _installed:
return
rep = outcome.get_result()

# we only look at actual failing test calls, not setup/teardown
Expand Down

0 comments on commit 55b7674

Please sign in to comment.