feat(py-monitor): add test_core.py()
This commit is contained in:
1 parent
cfc525d41b
commit
a5a7cb174a
1 file changed
+8
@@ -56,6 +56,14 @@ class KeywordTests(unittest.TestCase):
|
||||
def test_case_insensitive_match(self):
|
||||
self.assertTrue(title_matches_keyword("iPhone 13 PROTECTOR", ["protector"]))
|
||||
|
||||
def test_no_match(self):
|
||||
self.assertFalse(title_matches_keyword("iPhone 13", ["samsung"]))
|
||||
|
||||
def test_empty_inputs(self):
|
||||
self.assertFalse(title_matches_keyword("", ["x"]))
|
||||
self.assertFalse(title_matches_keyword("x", []))
|
||||
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
Reference in new issue
Block a user