Skip to content

Commit

Permalink
Update test_post_error
Browse files Browse the repository at this point in the history
The `log_output` fixture (`tests/conftest.py`) returns an instance of
`structlog.testing.LogCapture`. structlog v24.3.0 changed the behaviour
of `LogCapture`, via the `map_method_name` function, to map the
`exception` log level to the `error` log level (hynek/structlog#628).
This change broke `test_post_error`. Here, we simply accept that
decision, and update `test_post_error`.
  • Loading branch information
iaindillingham committed Jul 23, 2024
1 parent c7f3c0f commit cce72a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/unit/services/test_slack.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def test_post_error(mocker, log_output):
"channel": "channel",
"exc_info": True,
"event": "Failed to notify slack in channel: channel",
"log_level": "exception",
"log_level": "error",
}


Expand Down

0 comments on commit cce72a1

Please sign in to comment.