Skip to content
This repository was archived by the owner on Dec 21, 2024. It is now read-only.

Commit 0e36f31

Browse files
committed
Update tests.py
test_log_adict now compares message with '' vs None
1 parent a910fd8 commit 0e36f31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def test_log_adict(self):
133133
self.assertEqual(log_json.get("num"), msg["num"])
134134
self.assertEqual(log_json.get("5"), msg[5])
135135
self.assertEqual(log_json.get("nested"), msg["nested"])
136-
self.assertEqual(log_json["message"], None)
136+
self.assertEqual(log_json["message"], '')
137137

138138
def test_log_extra(self):
139139
fr = jsonlogger.JsonFormatter()

0 commit comments

Comments
 (0)