Skip to content

Commit

Permalink
add pylint-pytest dep
Browse files Browse the repository at this point in the history
  • Loading branch information
patelnets committed Mar 20, 2024
1 parent e0e224f commit 8c1df27
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 0 additions & 2 deletions backend/src/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,3 @@ src_paths = ["."]
[tool.pylint]
disable = ["C0114", "C0116", "C0115", "E0401", "W0511"]
ignore = ["venv"]
[tool.pylint.MASTER]
load-plugins= "pylint_pytest"
2 changes: 1 addition & 1 deletion backend/src/requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
pylint==3.0.3
6 changes: 4 additions & 2 deletions backend/src/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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")

0 comments on commit 8c1df27

Please sign in to comment.