Skip to content

Commit

Permalink
Some cleanup
Browse files Browse the repository at this point in the history
- fix assert parameter order
- add `add_extra` to `__all__`
  • Loading branch information
aucampia committed Dec 8, 2021
1 parent 5fa5cec commit 51ee09d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/structlog/stdlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"add_log_level_number",
"add_log_level",
"add_logger_name",
"add_extra",
"BoundLogger",
"filter_by_level",
"get_logger",
Expand Down
2 changes: 1 addition & 1 deletion tests/test_stdlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ def test_add_extra(self, log_record):
record.__dict__.update(extra)
event_dict = {"_record": record}
event_dict_out = add_extra(None, None, event_dict)
assert event_dict_out == {**event_dict, **extra}
assert {**event_dict, **extra} == event_dict_out

def test_add_extra_e2e(self):
"""
Expand Down

0 comments on commit 51ee09d

Please sign in to comment.