fix tests when dict order random

This commit is contained in:
Alan Hamlett 2019-05-07 18:16:18 -07:00
parent 11bba6259c
commit c05e1091f3

View file

@ -353,9 +353,9 @@ class MainTestCase(utils.TestCase):
self.assertEquals(actual, expected) self.assertEquals(actual, expected)
log_output = u("\n").join([u(' ').join(x) for x in logs.actual()]) log_output = u("\n").join([u(' ').join(x) for x in logs.actual()])
expected = "WakaTime DEBUG {u'response_code': 400, u'response_text': u'error response text'}" expected = "u'response_code': 400"
if is_py3: if is_py3:
expected = "WakaTime DEBUG {'response_code': 400, 'response_text': 'error response text'}" expected = "'response_code': 400"
self.assertIn(expected, log_output) self.assertIn(expected, log_output)
self.assertHeartbeatNotSavedOffline() self.assertHeartbeatNotSavedOffline()