MoobotFactoids: Don't rely on unspecified order of sqlite3 results. Closes GH-1383.

This commit is contained in:
Valentin Lorentz 2019-10-28 18:17:05 +01:00
parent cf954cf500
commit 3648751911
1 changed files with 3 additions and 1 deletions

View File

@ -227,7 +227,9 @@ class FactoidsTestCase(ChannelPluginTestCase):
self.prefix = userPrefix2
self.assertNotError('mogle is <reply>mo')
self.assertRegexp('most authored',
'Most prolific authors:.*moo.*(1).*boo.*(1)')
(r'Most prolific authors: .*'
r'(moo.*\(1\).*boo.*\(1\)'
r'|boo.*\(1\).*moo.*\(1\))'))
self.assertRegexp('most recent',
"2 latest factoids:.*mogle.*moogle.*")
self.assertResponse('moogle', 'moo')