python3Packages.dramatiq-abort: fix tests with dramatiq 2.0

This commit is contained in:
Harinn
2026-05-24 00:18:28 +07:00
parent 7f2d19a8d1
commit 2fe6e3c43a
2 changed files with 16 additions and 0 deletions
@@ -22,6 +22,11 @@ buildPythonPackage rec {
hash = "sha256-i5vL9yjQQambG8m6RDByr7/j8+PhDdLsai3pDrH1A4Q=";
};
patches = [
# https://github.com/Flared/dramatiq-abort/pull/38
./dramatiq-2.0-stub-broker-fail-fast.patch
];
build-system = [ setuptools ];
dependencies = [
@@ -0,0 +1,11 @@
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -32,7 +32,7 @@ def check_redis(client: Any) -> None:
@pytest.fixture()
def stub_broker() -> Generator[dramatiq.Broker, None, None]:
- broker = StubBroker()
+ broker = StubBroker(fail_fast_default=False)
broker.emit_after("process_boot")
dramatiq.set_broker(broker)
yield broker