From a4efff8411a493ab20f366110634d97687f69859 Mon Sep 17 00:00:00 2001 From: Martin Kozlovsky Date: Wed, 4 Dec 2024 17:05:40 +0100 Subject: [PATCH] removed unused fixture --- tests/test_data/conftest.py | 18 +++--------------- tests/test_utils/test_filesystem.py | 4 +++- 2 files changed, 6 insertions(+), 16 deletions(-) diff --git a/tests/test_data/conftest.py b/tests/test_data/conftest.py index c1217927..6151331a 100644 --- a/tests/test_data/conftest.py +++ b/tests/test_data/conftest.py @@ -1,9 +1,9 @@ -import pytest +from pytest import Metafunc, Parser from luxonis_ml.data import BucketStorage -def pytest_addoption(parser): +def pytest_addoption(parser: Parser): parser.addoption( "--only-local", action="store_true", @@ -12,19 +12,7 @@ def pytest_addoption(parser): ) -@pytest.fixture -def only_local(request): - return request.config.getoption("--only-local") - - -@pytest.fixture -def storage_options(only_local: bool): - if only_local: - return [BucketStorage.LOCAL] - return [BucketStorage.LOCAL, BucketStorage.GCS, BucketStorage.S3] - - -def pytest_generate_tests(metafunc): +def pytest_generate_tests(metafunc: Metafunc): if "bucket_storage" in metafunc.fixturenames: only_local = metafunc.config.getoption("--only-local") storage_options = ( diff --git a/tests/test_utils/test_filesystem.py b/tests/test_utils/test_filesystem.py index a4cceefb..b36c1f1e 100644 --- a/tests/test_utils/test_filesystem.py +++ b/tests/test_utils/test_filesystem.py @@ -39,7 +39,9 @@ def get_os_python_specific_url( @pytest.fixture -def fs(request, python_version: str, platform_name: str): +def fs( + request: pytest.FixtureRequest, python_version: str, platform_name: str +): url_path = get_os_python_specific_url( request.param, platform_name, python_version )