8000 Update tests.py · dolfinus/python-json-logger@0e36f31 · GitHub
[go: up one dir, main page]

Skip to content < 8000 link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/keyboard-shortcuts-dialog.f8fba3bd67fe74f9227b.module.css" />

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)
0