Skip to content

Commit 4ba0564

Browse files
committed
test_file_versions: test only case
1 parent 44d3805 commit 4ba0564

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

tests/actual_tests/files_test.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1055,17 +1055,14 @@ async def test_trashbin_async(anc_any, file_path):
10551055
assert not r
10561056

10571057

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):
10601059
if nc_any.check_capabilities("files.versioning"):
10611060
pytest.skip("Need 'Versions' App to be enabled.")
10621061
dest_path = "/test_dir_tmp/file_versions-ä.txt"
10631062
nc_any.files.delete(dest_path, not_fail=True)
10641063
nc_any.files.upload(dest_path, content=b"22")
10651064
time.sleep(2.0)
10661065
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)
10691066
time.sleep(2.0)
10701067
versions = nc_any.files.get_versions(new_file)
10711068
assert versions
@@ -1079,17 +1076,14 @@ def test_file_versions(nc_any, update_by_id):
10791076

10801077

10811078
@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):
10841080
if await anc_any.check_capabilities("files.versioning"):
10851081
pytest.skip("Need 'Versions' App to be enabled.")
10861082
dest_path = "/test_dir_tmp/file_versions-ä-async.txt"
10871083
await anc_any.files.delete(dest_path, not_fail=True)
10881084
await anc_any.files.upload(dest_path, content=b"22")
10891085
time.sleep(2.0)
10901086
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)
10931087
time.sleep(2.0)
10941088
versions = await anc_any.files.get_versions(new_file)
10951089
assert versions

0 commit comments

Comments
 (0)