@@ -77,8 +77,8 @@ def setup_class(cls):
77
77
print ('Setup complete.' )
78
78
79
79
needscredentials = pytest .mark .skipif (
80
- not os .path .exists (config_file ), reason = "External configuration not available, skipping..."
81
- )
80
+ not os .path .exists (config_file ),
81
+ reason = "External configuration not available, skipping..." )
82
82
83
83
@needscredentials
84
84
def test_create_tag_example (self ):
@@ -110,8 +110,11 @@ def test_list_tags_example(self):
110
110
# begin-list_tags
111
111
112
112
tag_list = global_tagging_service .list_tags (
113
- tag_type = 'user' , attached_only = True , full_data = True , providers = ['ghost' ], order_by_name = 'asc'
114
- ).get_result ()
113
+ tag_type = 'user' ,
114
+ attached_only = True ,
115
+ full_data = True ,
116
+ providers = ['ghost' ],
117
+ order_by_name = 'asc' ).get_result ()
115
118
116
119
print (json .dumps (tag_list , indent = 2 ))
117
120
@@ -132,8 +135,8 @@ def test_attach_tag_example(self):
132
135
resource_model = {'resource_id' : resource_crn }
133
136
134
137
tag_results = global_tagging_service .attach_tag (
135
- resources = [resource_model ], tag_names = ['tag_test_1' , 'tag_test_2' ], tag_type = 'user'
136
- ).get_result ()
138
+ resources = [resource_model ], tag_names = [
139
+ 'tag_test_1' , 'tag_test_2' ], tag_type = 'user' ).get_result ()
137
140
138
141
print (json .dumps (tag_results , indent = 2 ))
139
142
@@ -155,8 +158,8 @@ def test_attach_tag_query_example(self):
155
158
query_string_model = {'query_string' : filter }
156
159
157
160
tag_results = global_tagging_service .attach_tag (
158
- query = query_string_model , tag_names = ['tag_test_3' , 'tag_test_4' ], tag_type = 'user'
159
- ).get_result ()
161
+ query = query_string_model , tag_names = [
162
+ 'tag_test_3' , 'tag_test_4' ], tag_type = 'user' ).get_result ()
160
163
161
164
print (json .dumps (tag_results , indent = 2 ))
162
165
@@ -177,8 +180,8 @@ def test_detach_tag_example(self):
177
180
resource_model = {'resource_id' : resource_crn }
178
181
179
182
tag_results = global_tagging_service .detach_tag (
180
- resources = [resource_model ], tag_names = ['tag_test_1' , 'tag_test_2' ], tag_type = 'user'
181
- ).get_result ()
183
+ resources = [resource_model ], tag_names = [
184
+ 'tag_test_1' , 'tag_test_2' ], tag_type = 'user' ).get_result ()
182
185
183
186
print (json .dumps (tag_results , indent = 2 ))
184
187
@@ -200,8 +203,8 @@ def test_detach_tag_query_example(self):
200
203
query_string_model = {'query_string' : filter }
201
204
202
205
tag_results = global_tagging_service .detach_tag (
203
- query = query_string_model , tag_names = ['tag_test_3' , 'tag_test_4' ], tag_type = 'user'
204
- ).get_result ()
206
+ query = query_string_model , tag_names = [
207
+ 'tag_test_3' , 'tag_test_4' ], tag_type = 'user' ).get_result ()
205
208
206
209
print (json .dumps (tag_results , indent = 2 ))
207
210
@@ -253,4 +256,4 @@ def test_delete_tag_all_example(self):
253
256
# endregion
254
257
##############################################################################
255
258
# End of Examples for Service: GlobalTaggingV1
256
- ##############################################################################
259
+ ##############################################################################
0 commit comments