Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cubicweb
cubes
s3storage
Commits
2736ca768ad6
Commit
6f29a307
authored
Dec 09, 2020
by
Elouan Martinet
Browse files
[testing] Fix moto call
parent
013754d1c3cb
Pipeline
#25711
passed with stage
in 2 minutes and 7 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
cubicweb_s3storage/testing.py
View file @
2736ca76
...
...
@@ -10,7 +10,7 @@ class S3StorageTestMixin(object):
def
setUp
(
self
):
s3_mock
=
mock_s3
()
s3_mock
.
start
()
resource
=
boto3
.
resource
(
's3'
,
region_name
=
'
somewhere
'
)
resource
=
boto3
.
resource
(
's3'
,
region_name
=
'
us-east-1
'
)
self
.
s3_bucket
=
resource
.
create_bucket
(
Bucket
=
self
.
s3_bucket
)
patched_storage_s3_client
=
patch
(
'cubicweb_s3storage.storages.S3Storage._s3_client'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment