From 55ab1d63b7c69da02fe555f1f616acb8e8b43e48 Mon Sep 17 00:00:00 2001 From: Karim shoair Date: Sun, 3 Nov 2024 13:37:27 +0200 Subject: [PATCH] Turn auto_match off when not needed in testing --- tests/test_parser_functions.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/test_parser_functions.py b/tests/test_parser_functions.py index 80c8f0f..88013ad 100644 --- a/tests/test_parser_functions.py +++ b/tests/test_parser_functions.py @@ -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)