Skip to content
This repository has been archived by the owner on Dec 19, 2023. It is now read-only.

Commit

Permalink
Fixed linting
Browse files Browse the repository at this point in the history
  • Loading branch information
terricain committed Jul 15, 2021
1 parent fd9492c commit e40b890
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/test_basic.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import json

import pytest

from sanic_json_logging.formatters import JSONFormatter, JSONReqFormatter
Expand Down Expand Up @@ -45,14 +46,14 @@ async def test_json_custom_class_logging(custom_log_app, logs):
rec = access_formatter.format(log_record)
rec = json.loads(rec)

access_req_id = rec['req_id']
access_req_id = rec["req_id"]

else:
rec = formatter.format(log_record)
rec = json.loads(rec)
assert rec["message"] == "my class"

log_req_id = rec['req_id']
log_req_id = rec["req_id"]

assert access_req_id is not None
assert log_req_id == access_req_id

0 comments on commit e40b890

Please sign in to comment.