Fix test for big family to account for whole subtree

This commit is contained in:
Alexander Gololobov 2024-05-16 10:42:38 +02:00
parent 0bd4f55241
commit 4b5f31a22c

View File

@ -47,24 +47,26 @@ def test_big_family(client: KeeperClient):
assert response == TSV(
[
["/test_big_family/1", "5"],
["/test_big_family/2", "3"],
["/test_big_family/2/3", "0"],
["/test_big_family/2/2", "0"],
["/test_big_family/2/1", "0"],
["/test_big_family/1/5", "0"],
["/test_big_family/1/4", "0"],
["/test_big_family/1/3", "0"],
["/test_big_family/1/2", "0"],
["/test_big_family/1/1", "0"],
["/test_big_family", "11"],
["/test_big_family/1", "6"],
["/test_big_family/2", "4"],
["/test_big_family/2/3", "1"],
["/test_big_family/2/2", "1"],
["/test_big_family/2/1", "1"],
["/test_big_family/1/5", "1"],
["/test_big_family/1/4", "1"],
["/test_big_family/1/3", "1"],
["/test_big_family/1/2", "1"],
["/test_big_family/1/1", "1"],
]
)
response = client.find_big_family("/test_big_family", 1)
response = client.find_big_family("/test_big_family", 2)
assert response == TSV(
[
["/test_big_family/1", "5"],
["/test_big_family", "11"],
["/test_big_family/1", "6"],
]
)