We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 993e6a2 commit 6b20fc8Copy full SHA for 6b20fc8
test/db_test_base.py
@@ -1116,14 +1116,16 @@ def testQuietJournal(self):
1116
self.assertEqual(expected, args)
1117
1118
result=self.db.user.history('2')
1119
+ result.sort()
1120
1121
# result should look like:
- # [('2', <Date 2017-08-29.01:42:44.283>, '1', 'link',
1122
- # ('issue', '1', 'nosy')),
1123
- # ('2', <Date 2017-08-29.01:42:40.227>, '1', 'create', {})]
+ # [('2', <Date 2017-08-29.01:42:40.227>, '1', 'create', {}),
+ # ('2', <Date 2017-08-29.01:42:44.283>, '1', 'link',
1124
+ # ('issue', '1', 'nosy')) ]
1125
1126
expected2 = ('issue', '1', 'nosy')
- (id, tx_date, user, action, args) = result[0]
1127
+
1128
+ (id, tx_date, user, action, args) = result[-1]
1129
1130
self.assertEqual(len(result),2)
1131
0 commit comments