Fix black

This commit is contained in:
kssenii 2022-06-13 21:46:57 +02:00
parent 34e63b20fb
commit 11c624914a

View File

@ -42,18 +42,41 @@ def remove_broken_detached_part_impl(table, node, expect_broken_prefix):
result = node.exec_in_container(["touch", f"{path_to_detached}trash"])
node.exec_in_container(["mkdir", f"{path_to_detached}../broken_all_fake"])
node.exec_in_container(["touch", "-t", "1312031429.30", f"{path_to_detached}../broken_all_fake"])
node.exec_in_container(
["touch", "-t", "1312031429.30", f"{path_to_detached}../broken_all_fake"]
)
result = node.exec_in_container(["stat", f"{path_to_detached}../broken_all_fake"])
print(result)
assert("Modify: 2013-12-03" in result)
node.exec_in_container(["mv", f"{path_to_detached}../broken_all_fake", f"{path_to_detached}broken_all_fake"])
assert "Modify: 2013-12-03" in result
node.exec_in_container(
[
"mv",
f"{path_to_detached}../broken_all_fake",
f"{path_to_detached}broken_all_fake",
]
)
node.exec_in_container(["mkdir", f"{path_to_detached}../unexpected_all_42_1337_5"])
node.exec_in_container(["touch", "-t", "1312031429.30", f"{path_to_detached}../unexpected_all_42_1337_5"])
result = node.exec_in_container(["stat", f"{path_to_detached}../unexpected_all_42_1337_5"])
node.exec_in_container(
[
"touch",
"-t",
"1312031429.30",
f"{path_to_detached}../unexpected_all_42_1337_5",
]
)
result = node.exec_in_container(
["stat", f"{path_to_detached}../unexpected_all_42_1337_5"]
)
print(result)
assert("Modify: 2013-12-03" in result)
node.exec_in_container(["mv", f"{path_to_detached}../unexpected_all_42_1337_5", f"{path_to_detached}unexpected_all_42_1337_5"])
assert "Modify: 2013-12-03" in result
node.exec_in_container(
[
"mv",
f"{path_to_detached}../unexpected_all_42_1337_5",
f"{path_to_detached}unexpected_all_42_1337_5",
]
)
result = node.query(
f"CHECK TABLE {table}", settings={"check_query_single_value_result": 0}