From 8c1df270e6145e08bc1ae4232c69b234c7b10394 Mon Sep 17 00:00:00 2001 From: patelnets Date: Wed, 20 Mar 2024 08:46:59 +0000 Subject: [PATCH] add pylint-pytest dep --- backend/src/pyproject.toml | 2 -- backend/src/requirements-dev.txt | 2 +- backend/src/tests/conftest.py | 6 ++++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/backend/src/pyproject.toml b/backend/src/pyproject.toml index 4ddb96e..2573a0a 100644 --- a/backend/src/pyproject.toml +++ b/backend/src/pyproject.toml @@ -4,5 +4,3 @@ src_paths = ["."] [tool.pylint] disable = ["C0114", "C0116", "C0115", "E0401", "W0511"] ignore = ["venv"] -[tool.pylint.MASTER] -load-plugins= "pylint_pytest" \ No newline at end of file diff --git a/backend/src/requirements-dev.txt b/backend/src/requirements-dev.txt index ad1303a..db56fb3 100644 --- a/backend/src/requirements-dev.txt +++ b/backend/src/requirements-dev.txt @@ -7,4 +7,4 @@ pytest-cov==4.1.0 moto==5.0.3 black==24.2.0 isort==5.13.2 -pylint==3.0.3 \ No newline at end of file +pylint==3.0.3 diff --git a/backend/src/tests/conftest.py b/backend/src/tests/conftest.py index 5718d9e..e5c9a44 100644 --- a/backend/src/tests/conftest.py +++ b/backend/src/tests/conftest.py @@ -5,8 +5,8 @@ from moto import mock_aws -@pytest.fixture(scope="function") -def aws_credentials(): +@pytest.fixture(scope="function", name="aws_credentials") +def fixture_aws_credentials(): """Mocked AWS Credentials for moto.""" os.environ["AWS_ACCESS_KEY_ID"] = "testing" os.environ["AWS_SECRET_ACCESS_KEY"] = "testing" @@ -16,12 +16,14 @@ def aws_credentials(): @pytest.fixture(scope="function") +# pylint: disable-next=unused-argument def dynamodb_client(aws_credentials): with mock_aws(): yield boto3.client("dynamodb", region_name="us-east-2") @pytest.fixture(scope="function") +# pylint: disable-next=unused-argument def s3_client(aws_credentials): with mock_aws(): yield boto3.client("s3")