python3Packages.dramatiq-abort: fix tests with dramatiq 2.0
This commit is contained in:
@@ -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 = [
|
||||
|
||||
+11
@@ -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
|
||||
Reference in New Issue
Block a user