diff --git a/src/ragnar/tests/__init__.py b/src/ragnar/tests/__init__.py new file mode 100644 index 0000000..98a0ce5 --- /dev/null +++ b/src/ragnar/tests/__init__.py @@ -0,0 +1 @@ +from ragnar.tests.bot import * diff --git a/src/ragnar/tests/__pycache__/__init__.cpython-312.pyc b/src/ragnar/tests/__pycache__/__init__.cpython-312.pyc new file mode 100644 index 0000000..cea95e2 Binary files /dev/null and b/src/ragnar/tests/__pycache__/__init__.cpython-312.pyc differ diff --git a/src/ragnar/tests/__pycache__/bot.cpython-312.pyc b/src/ragnar/tests/__pycache__/bot.cpython-312.pyc new file mode 100644 index 0000000..836ad68 Binary files /dev/null and b/src/ragnar/tests/__pycache__/bot.cpython-312.pyc differ diff --git a/src/ragnar/tests/bot.py b/src/ragnar/tests/bot.py new file mode 100644 index 0000000..57e8365 --- /dev/null +++ b/src/ragnar/tests/bot.py @@ -0,0 +1,16 @@ +import unittest +from ragnar.bot import Bot + + +class BotTestCase(unittest.TestCase): + + def setUp(self): + self.bot = Bot("slutty", "butty") + return super().setUp() + + def clean_rant_text(self, text): + return text.replace(" ", "") + + def test_is_sus_rant_regex_match(self): + rant_text = "To learn more about our services or to schedule a consultation, contact us at +1 (604) 200-0581 today." + self.assertTrue(self.bot.is_sus_rant(42, rant_text)) diff --git a/tiggers.js b/tiggers.js new file mode 100644 index 0000000..e69de29