55
66import pytest
77from click .testing import CliRunner
8+ from typeguard import suppress_type_checks
89
910from camelot .cli import cli
1011from camelot .utils import TemporaryDirectory
@@ -25,6 +26,7 @@ def test_help_output():
2526 )
2627
2728
29+ @suppress_type_checks
2830@skip_on_windows
2931def test_cli_lattice (testdir ):
3032 with TemporaryDirectory () as tempdir :
@@ -46,6 +48,7 @@ def test_cli_lattice(testdir):
4648 assert format_error in result .output
4749
4850
51+ @suppress_type_checks
4952def test_cli_stream (testdir ):
5053 with TemporaryDirectory () as tempdir :
5154 infile = os .path .join (testdir , "budget.pdf" )
@@ -125,6 +128,7 @@ def test_cli_parallel(testdir):
125128 assert result .output == "Found 2 tables\n "
126129
127130
131+ @suppress_type_checks
128132def test_cli_hybrid (testdir ):
129133 with TemporaryDirectory () as tempdir :
130134 infile = os .path .join (testdir , "budget.pdf" )
@@ -145,6 +149,7 @@ def test_cli_hybrid(testdir):
145149 assert format_error in result .output
146150
147151
152+ @suppress_type_checks
148153def test_cli_network (testdir ):
149154 with TemporaryDirectory () as tempdir :
150155 infile = os .path .join (testdir , "budget.pdf" )
@@ -163,6 +168,7 @@ def test_cli_network(testdir):
163168 assert format_error in result .output
164169
165170
171+ @suppress_type_checks
166172def test_cli_password (testdir ):
167173 with TemporaryDirectory () as tempdir :
168174 infile = os .path .join (testdir , "health_protected.pdf" )
@@ -208,6 +214,7 @@ def test_cli_password(testdir):
208214 assert output_error in str (result .exception )
209215
210216
217+ @suppress_type_checks
211218def test_cli_output_format (testdir ):
212219 with TemporaryDirectory () as tempdir :
213220 infile = os .path .join (testdir , "health.pdf" )
0 commit comments