1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-06-17 00:07:37 +02:00

ignore mocking typing errors

This commit is contained in:
Kelly Brazil
2022-10-18 09:36:17 -07:00
parent f370151b54
commit 27b6e79c8a

View File

@ -94,7 +94,7 @@ class MyTests(unittest.TestCase):
info = mock_parser_info info = mock_parser_info
jc.lib.parsers = ['deprecated'] jc.lib.parsers = ['deprecated']
jc.lib._get_parser = lambda x: mock_parser jc.lib._get_parser = lambda x: mock_parser # type: ignore
result = jc.lib.all_parser_info(show_deprecated=True) result = jc.lib.all_parser_info(show_deprecated=True)
# reset # reset
@ -122,7 +122,7 @@ class MyTests(unittest.TestCase):
info = mock_parser_info info = mock_parser_info
jc.lib.parsers = ['deprecated'] jc.lib.parsers = ['deprecated']
jc.lib._get_parser = lambda x: mock_parser jc.lib._get_parser = lambda x: mock_parser # type: ignore
result = jc.lib.all_parser_info(show_hidden=True) result = jc.lib.all_parser_info(show_hidden=True)
# reset # reset