Skip to content

Commit e071d42

Browse files
committed
Fix tests and lint
1 parent 9ef4961 commit e071d42

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/common/dramatiq.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def init_dramatiq(config: AppConfig):
4040
if config.ENVIRONMENT not in ["test", "local"]:
4141
logging.critical(
4242
"Running a non-test/non-local environment without Redis URL set",
43-
extra={"ENVIRONMENT": config.ENVIRONMENT}
43+
extra={"ENVIRONMENT": config.ENVIRONMENT},
4444
)
4545
broker.add_middleware(AsyncIO())
4646
set_broker(broker)

tests/common/test_dramatiq.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,4 +70,6 @@ def test_init_dramatiq_without_redis_url(caplog):
7070
with caplog.at_level(logging.CRITICAL):
7171
init_dramatiq(config)
7272

73-
assert "Running a non-test environment without Redis URL set" in caplog.text
73+
assert (
74+
"Running a non-test/non-local environment without Redis URL set" in caplog.text
75+
)

0 commit comments

Comments
 (0)