diff options
| author | Alex Schofield <git@ajschof.me> | 2024-08-22 11:34:19 +0100 |
|---|---|---|
| committer | Alex Schofield <git@ajschof.me> | 2024-08-22 11:34:19 +0100 |
| commit | 01d48158121472229bad675fa0596cc09efca746 (patch) | |
| tree | 353631a24eb4c613c22e808cb865b2d342973e3a | |
| parent | 844d79fdcfb4ff7118f8ae02aa77b6a29f1467c2 (diff) | |
| download | de-project-bentley-01d48158121472229bad675fa0596cc09efca746.tar.gz de-project-bentley-01d48158121472229bad675fa0596cc09efca746.zip | |
fix: create two mocked buckets and check if extract_bucket is returned
| -rw-r--r-- | tests/test_extract_lambda.py | 9 |
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"}, ) |
