From 0316057306fb6e46c6485e059d7183922c6c7240 Mon Sep 17 00:00:00 2001 From: philippe Date: Thu, 16 Mar 2023 13:51:10 -0400 Subject: [PATCH 1/2] Fix pytest make report --- dash/testing/plugin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dash/testing/plugin.py b/dash/testing/plugin.py index 206afe1165..00008c2b4c 100644 --- a/dash/testing/plugin.py +++ b/dash/testing/plugin.py @@ -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 From 341000ba31ffbf47cc54f35dcdbe4432d47342e0 Mon Sep 17 00:00:00 2001 From: philippe Date: Thu, 16 Mar 2023 15:22:31 -0400 Subject: [PATCH 2/2] Update changelog. --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index c299eae041..8fda963c15 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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