Skip to content
This repository was archived by the owner on Apr 11, 2025. It is now read-only.

Commit 265117f

Browse files
committed
Fix/surpress typeguard
1 parent c7c8883 commit 265117f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/test_cli.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
import pytest
77
from click.testing import CliRunner
8+
from typeguard import suppress_type_checks
89

910
from camelot.cli import cli
1011
from camelot.utils import TemporaryDirectory
@@ -25,6 +26,7 @@ def test_help_output():
2526
)
2627

2728

29+
@suppress_type_checks
2830
@skip_on_windows
2931
def 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
4952
def 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
128132
def 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
148153
def 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
166172
def 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
211218
def test_cli_output_format(testdir):
212219
with TemporaryDirectory() as tempdir:
213220
infile = os.path.join(testdir, "health.pdf")

0 commit comments

Comments
 (0)