Turn auto_match off when not needed in testing

This commit is contained in:
Karim shoair
2024-11-03 13:37:27 +02:00
parent eaae5908c9
commit 55ab1d63b7
+4 -4
View File
@@ -127,16 +127,16 @@ class TestParser(unittest.TestCase):
def test_expected_errors(self):
"""Test errors that should raised if it does"""
with self.assertRaises(ValueError):
_ = Adaptor()
_ = Adaptor(auto_match=False)
with self.assertRaises(TypeError):
_ = Adaptor(root="ayo")
_ = Adaptor(root="ayo", auto_match=False)
with self.assertRaises(TypeError):
_ = Adaptor(text=1)
_ = Adaptor(text=1, auto_match=False)
with self.assertRaises(TypeError):
_ = Adaptor(body=1)
_ = Adaptor(body=1, auto_match=False)
with self.assertRaises(ValueError):
_ = Adaptor(self.html, storage=object, auto_match=True)