Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
from pathlib import Path

import pytest
from beartype import beartype
from mock_vws import MockVWS
from mock_vws.database import VuforiaDatabase
from sybil import Sybil
Expand All @@ -20,15 +19,6 @@
)


def pytest_collection_modifyitems(items: list[pytest.Item]) -> None:
"""
Apply the beartype decorator to all collected test functions.
"""
for item in items:
if isinstance(item, pytest.Function):
item.obj = beartype(obj=item.obj)


@pytest.fixture(name="make_image_file")
def fixture_make_image_file(
high_quality_image: io.BytesIO,
Expand Down
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ optional-dependencies.dev = [
"pyright==1.1.405",
"pyroma==5.0",
"pytest==8.4.2",
"pytest-beartype>=0.2.0",
"pytest-cov==7.0.0",
"pyyaml==6.0.2",
"ruff==0.13.0",
Expand Down Expand Up @@ -316,6 +317,7 @@ max_supported_python = "3.13"

xfail_strict = true
log_cli = true
addopts = "--beartype-packages=tests"

[tool.coverage.run]

Expand Down
2 changes: 1 addition & 1 deletion tests/test_vws.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class TestAddTarget:
)
@pytest.mark.parametrize(argnames="active_flag", argvalues=[True, False])
def test_add_target(
vws_client: VWS,
vws_client: int,
image: io.BytesIO | BinaryIO,
application_metadata: bytes | None,
cloud_reco_client: CloudRecoService,
Expand Down
Loading