File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change
1
+ import boto3
1
2
import pytest
3
+ from moto import mock_s3
2
4
3
5
from dagster import file_relative_path
4
6
@@ -8,6 +10,12 @@ def docs_snippets_folder():
8
10
return file_relative_path (__file__ , "../docs_snippets/" )
9
11
10
12
13
+ @pytest .fixture
14
+ def mock_s3_resource ():
15
+ with mock_s3 ():
16
+ yield boto3 .resource ("s3" , region_name = "us-east-1" )
17
+
18
+
11
19
@pytest .fixture
12
20
def mock_s3_bucket (mock_s3_resource ):
13
21
yield mock_s3_resource .create_bucket (Bucket = "test-bucket" )
Original file line number Diff line number Diff line change 50
50
# "'NoneType' object has no attribute 'canvas'" errors in the tests that involve
51
51
# Jupyter notebooks
52
52
"matplotlib-inline<=0.1.3" ,
53
- "moto<5.0" ,
53
+ "moto[s3] <5.0" ,
54
54
"numpy" ,
55
55
"pandas" ,
56
56
"pandera" ,
You can’t perform that action at this time.
0 commit comments