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

Commit b789183

Browse files
author
Romain Dartigues
committed
xml test broken
Fix typo introduced in b13299c when "testJsonLogger" was renamed in "TestJsonLogger" but not in the called test.
1 parent 4c655a0 commit b789183

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/tests.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def testJsonDefaultEncoder(self):
123123
"otherdatetimeagain": datetime.datetime(1900, 1, 1)}
124124
self.logger.info(msg)
125125
logJson = json.loads(self.buffer.getvalue())
126-
self.assertEqual(logJson.get("adate"), "1999-12-31T23:59:00")
126+
self.assertEqual(logJson.get("adate"), "1999-12-31T23:59:00")
127127
self.assertEqual(logJson.get("otherdate"), "1789-07-14")
128128
self.assertEqual(logJson.get("otherdatetime"), "1789-07-14T23:59:00")
129129
self.assertEqual(logJson.get("otherdatetimeagain"),
@@ -175,7 +175,7 @@ def testExcInfo(self):
175175
if len(sys.argv[1:]) > 0:
176176
if sys.argv[1] == 'xml':
177177
testSuite = unittest.TestLoader().loadTestsFromTestCase(
178-
testJsonLogger)
178+
TestJsonLogger)
179179
xmlrunner.XMLTestRunner(output='reports').run(testSuite)
180180
else:
181181
unittest.main()

0 commit comments

Comments
 (0)