diff --git a/tests/test_awslambda/test_lambda_alias.py b/tests/test_awslambda/test_lambda_alias.py index 00ade02f7..88049347f 100644 --- a/tests/test_awslambda/test_lambda_alias.py +++ b/tests/test_awslambda/test_lambda_alias.py @@ -1,12 +1,12 @@ """Unit tests for lambda-supported APIs.""" -import boto3 -import pytest -import sure # noqa # pylint: disable=unused-import +from uuid import uuid4 +import boto3 from botocore.exceptions import ClientError +import pytest + from moto import mock_lambda from moto.core import DEFAULT_ACCOUNT_ID as ACCOUNT_ID -from uuid import uuid4 from .utilities import ( get_role_name, get_test_zip_file1, @@ -195,9 +195,9 @@ def test_aliases_are_unique_per_function(): err = exc.value.response["Error"] assert err["Code"] == "ConflictException" - assert ( - err["Message"] - == f"Alias already exists: arn:aws:lambda:us-west-1:{ACCOUNT_ID}:function:{function_name}:alias1" + assert err["Message"] == ( + f"Alias already exists: arn:aws:lambda:us-west-1:{ACCOUNT_ID}" + f":function:{function_name}:alias1" ) @@ -278,9 +278,9 @@ def test_get_unknown_alias(): client.get_alias(FunctionName=function_name, Name="unknown") err = exc.value.response["Error"] assert err["Code"] == "ResourceNotFoundException" - assert ( - err["Message"] - == f"Cannot find alias arn: arn:aws:lambda:us-west-1:{ACCOUNT_ID}:function:{function_name}:unknown" + assert err["Message"] == ( + f"Cannot find alias arn: arn:aws:lambda:us-west-1:{ACCOUNT_ID}" + f":function:{function_name}:unknown" ) diff --git a/tests/test_ec2/test_server.py b/tests/test_ec2/test_server.py index 837e0053e..1061ea1dc 100644 --- a/tests/test_ec2/test_server.py +++ b/tests/test_ec2/test_server.py @@ -1,14 +1,10 @@ +"""Test the different server responses.""" import re -import sure # noqa # pylint: disable=unused-import import xmltodict import moto.server as server from tests import EXAMPLE_AMI_ID -""" -Test the different server responses -""" - def test_ec2_server_get(): backend = server.create_backend_app("ec2")