Skip to content

Commit 1c987da

Browse files
committed
Fix pylint empty-list comparison in timeout test
1 parent 2af9315 commit 1c987da

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_query.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,16 +80,16 @@ def test_default_timeout(
8080
cloud_reco_client.query(image=image)
8181
else:
8282
matches = cloud_reco_client.query(image=image)
83-
assert matches == []
83+
assert not matches
8484

8585
@staticmethod
8686
@pytest.mark.parametrize(
8787
argnames="custom_timeout",
88-
argvalues=[60.5, 60, (5.0, 30.0)],
88+
argvalues=[60.5, 60.0, (5.0, 30.0)],
8989
)
9090
def test_custom_timeout(
9191
image: io.BytesIO | BinaryIO,
92-
custom_timeout: int | float | tuple[float, float], # noqa: PYI041
92+
custom_timeout: float | tuple[float, float],
9393
) -> None:
9494
"""It is possible to set a custom request timeout."""
9595
with MockVWS() as mock:

0 commit comments

Comments
 (0)