Automatic style fix

This commit is contained in:
robot-clickhouse 2023-09-16 00:32:32 +00:00
parent afc753bb2d
commit 66c2ac9364
2 changed files with 5 additions and 3 deletions

View File

@ -115,8 +115,10 @@ class KeeperClient(object):
def get(self, path: str, timeout: float = 60.0) -> str:
return self.execute_query(f"get {path}", timeout)
def set(self, path: str, value:str, version: tp.Optional[int] = None) -> None:
self.execute_query(f"set {path} {value} {version if version is not None else ''}")
def set(self, path: str, value: str, version: tp.Optional[int] = None) -> None:
self.execute_query(
f"set {path} {value} {version if version is not None else ''}"
)
def rm(self, path: str, version: tp.Optional[int] = None) -> None:
self.execute_query(f"rm {path} {version if version is not None else ''}")

View File

@ -215,4 +215,4 @@ def test_quoted_argument_parsing(client: KeeperClient):
assert client.get(node_path) == "value3 with some whitespace"
client.execute_query(f"set '{node_path}' \"value4 with some whitespace\" 3")
assert client.get(node_path) == "value4 with some whitespace"
assert client.get(node_path) == "value4 with some whitespace"