aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_extract_lambda.py
diff options
context:
space:
mode:
authorAlex Schofield <git@ajschof.me>2024-08-22 11:34:19 +0100
committerAlex Schofield <git@ajschof.me>2024-08-22 11:34:19 +0100
commit01d48158121472229bad675fa0596cc09efca746 (patch)
tree353631a24eb4c613c22e808cb865b2d342973e3a /tests/test_extract_lambda.py
parent844d79fdcfb4ff7118f8ae02aa77b6a29f1467c2 (diff)
downloadde-project-bentley-01d48158121472229bad675fa0596cc09efca746.tar.gz
de-project-bentley-01d48158121472229bad675fa0596cc09efca746.zip
fix: create two mocked buckets and check if extract_bucket is returned
Diffstat (limited to 'tests/test_extract_lambda.py')
-rw-r--r--tests/test_extract_lambda.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/test_extract_lambda.py b/tests/test_extract_lambda.py
index 9cf5684..92f53aa 100644
--- a/tests/test_extract_lambda.py
+++ b/tests/test_extract_lambda.py
@@ -153,7 +153,14 @@ class TestExtractBucket:
assert result == "extract_bucket"
def test_bucket_returns_first_bucket(self, s3_client):
- bucket1 = s3_client.create_bucket(
+ # Redefine what the test does
+ # Create two buckets and check that only extract_bucket is returned
+
+ s3_client.create_bucket(
+ Bucket="extract_bucket",
+ CreateBucketConfiguration={"LocationConstraint": "eu-west-2"},
+ )
+ s3_client.create_bucket(
Bucket="bucket1",
CreateBucketConfiguration={"LocationConstraint": "eu-west-2"},
)
git.ajschof.me — hosted by ajschofield — powered by cgit