From 80f15a1568fef85a580df8b917a61188d21abff9 Mon Sep 17 00:00:00 2001 From: Somashekar B R Date: Tue, 24 Sep 2024 23:42:00 +0530 Subject: [PATCH] fixed ruff chekc --- tests/fixtures/fast_api_test_client.py | 2 +- tests/fixtures/ingest_helper.py | 2 +- tests/fixtures/mock_injector.py | 2 +- tests/server/ingest/test_local_ingest.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/fixtures/fast_api_test_client.py b/tests/fixtures/fast_api_test_client.py index 77d6037c7..17525412f 100644 --- a/tests/fixtures/fast_api_test_client.py +++ b/tests/fixtures/fast_api_test_client.py @@ -5,7 +5,7 @@ from tests.fixtures.mock_injector import MockInjector -@pytest.fixture() +@pytest.fixture def test_client(request: pytest.FixtureRequest, injector: MockInjector) -> TestClient: if request is not None and hasattr(request, "param"): injector.bind_settings(request.param or {}) diff --git a/tests/fixtures/ingest_helper.py b/tests/fixtures/ingest_helper.py index 25515f4e9..0d49d41a2 100644 --- a/tests/fixtures/ingest_helper.py +++ b/tests/fixtures/ingest_helper.py @@ -19,6 +19,6 @@ def ingest_file(self, path: Path) -> IngestResponse: return ingest_result -@pytest.fixture() +@pytest.fixture def ingest_helper(test_client: TestClient) -> IngestHelper: return IngestHelper(test_client) diff --git a/tests/fixtures/mock_injector.py b/tests/fixtures/mock_injector.py index 5769b33de..6f90fc294 100644 --- a/tests/fixtures/mock_injector.py +++ b/tests/fixtures/mock_injector.py @@ -37,6 +37,6 @@ def get(self, interface: type[T]) -> T: return self.test_injector.get(interface) -@pytest.fixture() +@pytest.fixture def injector() -> MockInjector: return MockInjector() diff --git a/tests/server/ingest/test_local_ingest.py b/tests/server/ingest/test_local_ingest.py index 860000efe..9c6cba6df 100644 --- a/tests/server/ingest/test_local_ingest.py +++ b/tests/server/ingest/test_local_ingest.py @@ -6,7 +6,7 @@ from fastapi.testclient import TestClient -@pytest.fixture() +@pytest.fixture def file_path() -> str: return "test.txt"