From 3648751911688334407566a9b905b270f61761f0 Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Mon, 28 Oct 2019 18:17:05 +0100 Subject: [PATCH] MoobotFactoids: Don't rely on unspecified order of sqlite3 results. Closes GH-1383. --- plugins/MoobotFactoids/test.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/MoobotFactoids/test.py b/plugins/MoobotFactoids/test.py index 4598ecd48..f254e9d80 100644 --- a/plugins/MoobotFactoids/test.py +++ b/plugins/MoobotFactoids/test.py @@ -227,7 +227,9 @@ class FactoidsTestCase(ChannelPluginTestCase): self.prefix = userPrefix2 self.assertNotError('mogle is 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')