@@ -1159,6 +1159,7 @@ async def test_create_update_delete_tag_async(anc_any):
1159
1159
1160
1160
1161
1161
def test_get_assign_unassign_tag (nc_any ):
1162
+
1162
1163
with contextlib .suppress (NextcloudExceptionNotFound ):
1163
1164
nc_any .files .delete_tag (nc_any .files .tag_by_name ("test_nc_py_api" ))
1164
1165
with contextlib .suppress (NextcloudExceptionNotFound ):
@@ -1174,6 +1175,10 @@ def test_get_assign_unassign_tag(nc_any):
1174
1175
new_file = nc_any .files .upload ("/test_dir_tmp/tag_test.txt" , content = b"" )
1175
1176
new_file = nc_any .files .by_id (new_file )
1176
1177
assert nc_any .files .get_tags (new_file ) == []
1178
+
1179
+ if nc_any .srv_version ["major" ] > 30 :
1180
+ pytest .skip ("Skip temporary on master branch" )
1181
+
1177
1182
assert len (nc_any .files .list_by_criteria (tags = [tag1 ])) == 0
1178
1183
nc_any .files .assign_tag (new_file , tag1 )
1179
1184
assert isinstance (nc_any .files .get_tags (new_file )[0 ], SystemTag )
@@ -1206,6 +1211,10 @@ async def test_get_assign_unassign_tag_async(anc_any):
1206
1211
new_file = await anc_any .files .upload ("/test_dir_tmp/tag_test.txt" , content = b"" )
1207
1212
new_file = await anc_any .files .by_id (new_file )
1208
1213
assert await anc_any .files .get_tags (new_file ) == []
1214
+
1215
+ if (await anc_any .srv_version )["major" ] > 30 :
1216
+ pytest .skip ("Skip temporary on master branch" )
1217
+
1209
1218
assert len (await anc_any .files .list_by_criteria (tags = [tag1 ])) == 0
1210
1219
await anc_any .files .assign_tag (new_file , tag1 )
1211
1220
assert isinstance ((await anc_any .files .get_tags (new_file ))[0 ], SystemTag )
0 commit comments