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

Commit

Permalink
xml test broken
Browse files Browse the repository at this point in the history
Fix typo introduced in b13299c when "testJsonLogger" was renamed in
"TestJsonLogger" but not in the called test.
  • Loading branch information
romain-dartigues committed Mar 2, 2016
1 parent 4c655a0 commit b789183
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def testJsonDefaultEncoder(self):
"otherdatetimeagain": datetime.datetime(1900, 1, 1)}
self.logger.info(msg)
logJson = json.loads(self.buffer.getvalue())
self.assertEqual(logJson.get("adate"), "1999-12-31T23:59:00")
self.assertEqual(logJson.get("adate"), "1999-12-31T23:59:00")
self.assertEqual(logJson.get("otherdate"), "1789-07-14")
self.assertEqual(logJson.get("otherdatetime"), "1789-07-14T23:59:00")
self.assertEqual(logJson.get("otherdatetimeagain"),
Expand Down Expand Up @@ -175,7 +175,7 @@ def testExcInfo(self):
if len(sys.argv[1:]) > 0:
if sys.argv[1] == 'xml':
testSuite = unittest.TestLoader().loadTestsFromTestCase(
testJsonLogger)
TestJsonLogger)
xmlrunner.XMLTestRunner(output='reports').run(testSuite)
else:
unittest.main()

0 comments on commit b789183

Please sign in to comment.