We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3edad88 commit 81a8314Copy full SHA for 81a8314
examples/docs_snippets/docs_snippets_tests/conftest.py
@@ -1,4 +1,6 @@
1
+import boto3
2
import pytest
3
+from moto import mock_s3
4
5
from dagster import file_relative_path
6
@@ -8,6 +10,12 @@ def docs_snippets_folder():
8
10
return file_relative_path(__file__, "../docs_snippets/")
9
11
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
19
@pytest.fixture
20
def mock_s3_bucket(mock_s3_resource):
21
yield mock_s3_resource.create_bucket(Bucket="test-bucket")
examples/docs_snippets/setup.py
@@ -50,7 +50,7 @@
50
# "'NoneType' object has no attribute 'canvas'" errors in the tests that involve
51
# Jupyter notebooks
52
"matplotlib-inline<=0.1.3",
53
- "moto<5.0",
+ "moto[s3]<5.0",
54
"numpy",
55
"pandas",
56
"pandera",
0 commit comments