From a76706af039c4025c345844f5dc8e27ef7c1fc9a Mon Sep 17 00:00:00 2001 From: Brian Pandola Date: Thu, 27 Oct 2022 17:15:17 -0700 Subject: [PATCH] Fix `PytestReturnNotNoneWarning` in CloudTrail Tests --- tests/test_cloudtrail/test_cloudtrail.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_cloudtrail/test_cloudtrail.py b/tests/test_cloudtrail/test_cloudtrail.py index 48ac54cae..47272cc3d 100644 --- a/tests/test_cloudtrail/test_cloudtrail.py +++ b/tests/test_cloudtrail/test_cloudtrail.py @@ -76,7 +76,6 @@ def test_create_trail_simple(): ) resp.should.have.key("LogFileValidationEnabled").equal(False) resp.should.have.key("IsOrganizationTrail").equal(False) - return resp def create_trail_simple(region_name="us-east-1"): @@ -203,8 +202,9 @@ def test_get_trail_unknown(): @mock_cloudtrail +@mock_s3 def test_get_trail(): - test_create_trail_simple() + create_trail_simple() client = boto3.client("cloudtrail", region_name="us-east-1") _, _, name = create_trail_simple() trail = client.get_trail(Name=name)["Trail"]