File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff 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 )
Original file line number Diff line number Diff 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+ )
You can’t perform that action at this time.
0 commit comments