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:
@ -94,7 +94,7 @@ class MyTests(unittest.TestCase):
|
||||
info = mock_parser_info
|
||||
|
||||
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)
|
||||
|
||||
# reset
|
||||
@ -122,7 +122,7 @@ class MyTests(unittest.TestCase):
|
||||
info = mock_parser_info
|
||||
|
||||
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)
|
||||
|
||||
# reset
|
||||
|
Reference in New Issue
Block a user