We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9ef4961 commit e071d42Copy full SHA for e071d42
2 files changed
src/common/dramatiq.py
@@ -40,7 +40,7 @@ def init_dramatiq(config: AppConfig):
40
if config.ENVIRONMENT not in ["test", "local"]:
41
logging.critical(
42
"Running a non-test/non-local environment without Redis URL set",
43
- extra={"ENVIRONMENT": config.ENVIRONMENT}
+ extra={"ENVIRONMENT": config.ENVIRONMENT},
44
)
45
broker.add_middleware(AsyncIO())
46
set_broker(broker)
tests/common/test_dramatiq.py
@@ -70,4 +70,6 @@ def test_init_dramatiq_without_redis_url(caplog):
70
with caplog.at_level(logging.CRITICAL):
71
init_dramatiq(config)
72
73
- assert "Running a non-test environment without Redis URL set" in caplog.text
+ assert (
74
+ "Running a non-test/non-local environment without Redis URL set" in caplog.text
75
+ )
0 commit comments