17
17
from mock import MagicMock
18
18
19
19
20
- @pytest .fixture (scope = "module" )
20
+ @pytest .fixture ()
21
21
def base_config_with_schema ():
22
22
return {"SchemaVersion" : "1.0" }
23
23
24
24
25
- @pytest .fixture (scope = "module" )
25
+ @pytest .fixture ()
26
26
def valid_vpc_config ():
27
27
return {"SecurityGroupIds" : ["sg123" ], "Subnets" : ["subnet-1234" ]}
28
28
29
29
30
- @pytest .fixture (scope = "module" )
30
+ @pytest .fixture ()
31
31
def valid_iam_role_arn ():
32
32
return "arn:aws:iam::366666666666:role/IMRole"
33
33
34
34
35
- @pytest .fixture (scope = "module" )
35
+ @pytest .fixture ()
36
36
def valid_feature_group_config (valid_iam_role_arn ):
37
37
s3_storage_config = {"KmsKeyId" : "somekmskeyid" }
38
38
security_storage_config = {"KmsKeyId" : "someotherkmskeyid" }
@@ -45,15 +45,15 @@ def valid_feature_group_config(valid_iam_role_arn):
45
45
}
46
46
47
47
48
- @pytest .fixture (scope = "module" )
48
+ @pytest .fixture ()
49
49
def valid_edge_packaging_config (valid_iam_role_arn ):
50
50
return {
51
51
"OutputConfig" : {"KmsKeyId" : "somekeyid" },
52
52
"RoleArn" : valid_iam_role_arn ,
53
53
}
54
54
55
55
56
- @pytest .fixture (scope = "module" )
56
+ @pytest .fixture ()
57
57
def valid_model_config (valid_iam_role_arn , valid_vpc_config ):
58
58
return {
59
59
"EnableNetworkIsolation" : True ,
@@ -62,7 +62,7 @@ def valid_model_config(valid_iam_role_arn, valid_vpc_config):
62
62
}
63
63
64
64
65
- @pytest .fixture (scope = "module" )
65
+ @pytest .fixture ()
66
66
def valid_model_package_config (valid_iam_role_arn ):
67
67
transform_job_definition = {
68
68
"TransformOutput" : {"KmsKeyId" : "somerandomkmskeyid" },
@@ -75,7 +75,7 @@ def valid_model_package_config(valid_iam_role_arn):
75
75
return {"ValidationSpecification" : validation_specification }
76
76
77
77
78
- @pytest .fixture (scope = "module" )
78
+ @pytest .fixture ()
79
79
def valid_processing_job_config (valid_iam_role_arn , valid_vpc_config ):
80
80
network_config = {"EnableNetworkIsolation" : True , "VpcConfig" : valid_vpc_config }
81
81
dataset_definition = {
@@ -94,7 +94,7 @@ def valid_processing_job_config(valid_iam_role_arn, valid_vpc_config):
94
94
}
95
95
96
96
97
- @pytest .fixture (scope = "module" )
97
+ @pytest .fixture ()
98
98
def valid_training_job_config (valid_iam_role_arn , valid_vpc_config ):
99
99
return {
100
100
"EnableNetworkIsolation" : True ,
@@ -105,12 +105,12 @@ def valid_training_job_config(valid_iam_role_arn, valid_vpc_config):
105
105
}
106
106
107
107
108
- @pytest .fixture (scope = "module" )
108
+ @pytest .fixture ()
109
109
def valid_pipeline_config (valid_iam_role_arn ):
110
110
return {"RoleArn" : valid_iam_role_arn }
111
111
112
112
113
- @pytest .fixture (scope = "module" )
113
+ @pytest .fixture ()
114
114
def valid_compilation_job_config (valid_iam_role_arn , valid_vpc_config ):
115
115
return {
116
116
"OutputConfig" : {"KmsKeyId" : "somekmskey" },
@@ -119,7 +119,7 @@ def valid_compilation_job_config(valid_iam_role_arn, valid_vpc_config):
119
119
}
120
120
121
121
122
- @pytest .fixture (scope = "module" )
122
+ @pytest .fixture ()
123
123
def valid_transform_job_config ():
124
124
return {
125
125
"DataCaptureConfig" : {"KmsKeyId" : "somekmskey" },
@@ -128,7 +128,7 @@ def valid_transform_job_config():
128
128
}
129
129
130
130
131
- @pytest .fixture (scope = "module" )
131
+ @pytest .fixture ()
132
132
def valid_automl_config (valid_iam_role_arn , valid_vpc_config ):
133
133
return {
134
134
"AutoMLJobConfig" : {
@@ -139,7 +139,7 @@ def valid_automl_config(valid_iam_role_arn, valid_vpc_config):
139
139
}
140
140
141
141
142
- @pytest .fixture (scope = "module" )
142
+ @pytest .fixture ()
143
143
def valid_endpointconfig_config ():
144
144
return {
145
145
"AsyncInferenceConfig" : {"OutputConfig" : {"KmsKeyId" : "somekmskey" }},
@@ -150,7 +150,7 @@ def valid_endpointconfig_config():
150
150
}
151
151
152
152
153
- @pytest .fixture (scope = "module" )
153
+ @pytest .fixture ()
154
154
def valid_monitoring_schedule_config (valid_iam_role_arn , valid_vpc_config ):
155
155
network_config = {"EnableNetworkIsolation" : True , "VpcConfig" : valid_vpc_config }
156
156
return {
@@ -165,7 +165,7 @@ def valid_monitoring_schedule_config(valid_iam_role_arn, valid_vpc_config):
165
165
}
166
166
167
167
168
- @pytest .fixture (scope = "module" )
168
+ @pytest .fixture ()
169
169
def valid_config_with_all_the_scopes (
170
170
valid_feature_group_config ,
171
171
valid_monitoring_schedule_config ,
@@ -196,11 +196,11 @@ def valid_config_with_all_the_scopes(
196
196
}
197
197
198
198
199
- @pytest .fixture (scope = "module" )
199
+ @pytest .fixture ()
200
200
def s3_resource_mock ():
201
201
return MagicMock (name = "s3" )
202
202
203
203
204
- @pytest .fixture (scope = "module" )
204
+ @pytest .fixture ()
205
205
def get_data_dir ():
206
206
return os .path .join (os .path .dirname (__file__ ), ".." , ".." , ".." , "data" , "config" )
0 commit comments