home-assistant.python3Packages.pytest-homeassistant-custom-component: fix syrupy compat
This commit is contained in:
@@ -31,6 +31,10 @@ buildPythonPackage rec {
|
||||
hash = "sha256-GUUz6gbhmIgZCH9y3oEmf1Y+Gp2yUf8zvxM//uGvsNw=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
./syrupy-5.5-compat.patch
|
||||
];
|
||||
|
||||
build-system = [ setuptools ];
|
||||
|
||||
pythonRemoveDeps = true;
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
diff --git a/src/pytest_homeassistant_custom_component/syrupy.py b/src/pytest_homeassistant_custom_component/syrupy.py
|
||||
index 2eadcd3..2f90ab6 100644
|
||||
--- a/src/pytest_homeassistant_custom_component/syrupy.py
|
||||
+++ b/src/pytest_homeassistant_custom_component/syrupy.py
|
||||
@@ -22,7 +22,7 @@ from syrupy.location import PyTestLocation
|
||||
from syrupy.report import SnapshotReport
|
||||
from syrupy.session import ItemStatus, SnapshotSession
|
||||
from syrupy.types import PropertyFilter, PropertyMatcher, PropertyPath, SerializableData
|
||||
-from syrupy.utils import is_xdist_controller, is_xdist_worker
|
||||
+from syrupy.utils import is_xdist_worker
|
||||
import voluptuous as vol
|
||||
import voluptuous_serialize
|
||||
|
||||
@@ -410,8 +410,6 @@ def override_syrupy_finish(self: SnapshotSession) -> int:
|
||||
indent=2,
|
||||
)
|
||||
return exitstatus
|
||||
- if is_xdist_controller():
|
||||
- return exitstatus
|
||||
|
||||
if needs_xdist_merge:
|
||||
worker_count = None
|
||||
Reference in New Issue
Block a user