From 6a943b834282d2195955fec400a55689038fffad Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Wed, 6 Jul 2022 22:04:33 +0200 Subject: [PATCH] test_callbacks: Fix PluginRegexpTestCase to actually check regexp callbacks --- test/test_callbacks.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/test_callbacks.py b/test/test_callbacks.py index 38e03555d..4c2bdba57 100644 --- a/test/test_callbacks.py +++ b/test/test_callbacks.py @@ -978,9 +978,12 @@ class MultilinePrivmsgTestCase(ChannelPluginTestCase): class PluginRegexpTestCase(PluginTestCase): plugins = () class PCAR(callbacks.PluginRegexp): + regexps = ("test",) + def test(self, irc, msg, args): "" raise callbacks.ArgumentError + def testNoEscapingArgumentError(self): self.irc.addCallback(self.PCAR(self.irc)) self.assertResponse('test', 'test ')