From 6c25ee6a94f34e8490d39b0303bbd60f9aac5877 Mon Sep 17 00:00:00 2001 From: gitofanindya Date: Mon, 26 Feb 2024 15:33:36 +0530 Subject: [PATCH] NXPY-253: Restore capability to use the client with a local HTTP server -rebased with master. --- tests/functional/test_upload_s3.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/functional/test_upload_s3.py b/tests/functional/test_upload_s3.py index b3f2d05..739ad3a 100644 --- a/tests/functional/test_upload_s3.py +++ b/tests/functional/test_upload_s3.py @@ -9,7 +9,7 @@ import boto3 import pytest import requests.exceptions -from moto import mock_s3 +from moto import mock_aws from nuxeo.constants import UP_AMAZON_S3 from nuxeo.exceptions import HTTPError, UploadError from nuxeo.handlers.s3 import ChunkUploaderS3, UploaderS3 @@ -38,7 +38,7 @@ def bucket(): @pytest.fixture def s3(aws_credentials, bucket): - with mock_s3(): + with mock_aws(): client = boto3.client(UP_AMAZON_S3, region_name="eu-west-1") # Create a bucket