@@ -1055,17 +1055,14 @@ async def test_trashbin_async(anc_any, file_path):
1055
1055
assert not r
1056
1056
1057
1057
1058
- @pytest .mark .parametrize ("update_by_id" , (False , True ))
1059
- def test_file_versions (nc_any , update_by_id ):
1058
+ def test_file_versions (nc_any ):
1060
1059
if nc_any .check_capabilities ("files.versioning" ):
1061
1060
pytest .skip ("Need 'Versions' App to be enabled." )
1062
1061
dest_path = "/test_dir_tmp/file_versions-ä.txt"
1063
1062
nc_any .files .delete (dest_path , not_fail = True )
1064
1063
nc_any .files .upload (dest_path , content = b"22" )
1065
1064
time .sleep (2.0 )
1066
1065
new_file = nc_any .files .upload (dest_path , content = b"333" )
1067
- if update_by_id :
1068
- new_file = nc_any .files .by_id (new_file )
1069
1066
time .sleep (2.0 )
1070
1067
versions = nc_any .files .get_versions (new_file )
1071
1068
assert versions
@@ -1079,17 +1076,14 @@ def test_file_versions(nc_any, update_by_id):
1079
1076
1080
1077
1081
1078
@pytest .mark .asyncio (scope = "session" )
1082
- @pytest .mark .parametrize ("update_by_id" , (False , True ))
1083
- async def test_file_versions_async (anc_any , update_by_id ):
1079
+ async def test_file_versions_async (anc_any ):
1084
1080
if await anc_any .check_capabilities ("files.versioning" ):
1085
1081
pytest .skip ("Need 'Versions' App to be enabled." )
1086
1082
dest_path = "/test_dir_tmp/file_versions-ä-async.txt"
1087
1083
await anc_any .files .delete (dest_path , not_fail = True )
1088
1084
await anc_any .files .upload (dest_path , content = b"22" )
1089
1085
time .sleep (2.0 )
1090
1086
new_file = await anc_any .files .upload (dest_path , content = b"333" )
1091
- if update_by_id :
1092
- new_file = await anc_any .files .by_id (new_file )
1093
1087
time .sleep (2.0 )
1094
1088
versions = await anc_any .files .get_versions (new_file )
1095
1089
assert versions
0 commit comments