cli: standard tests in cli, test that they run, skip vectorstore tests (#28521)

This commit is contained in:
Erick Friis
2024-12-05 00:38:32 -08:00
committed by GitHub
parent c5acedddc2
commit 43c35d19d4
36 changed files with 1573 additions and 631 deletions

View File

@@ -13,7 +13,7 @@ def find_and_replace(source: str, replacements: Dict[str, str]) -> str:
return rtn
def replace_file(source: Path, replacements: Dict[str, str]) -> None:
def replace_file(source: Path, replacements: dict[str, str]) -> None:
try:
content = source.read_text()
except UnicodeDecodeError:
@@ -24,7 +24,7 @@ def replace_file(source: Path, replacements: Dict[str, str]) -> None:
source.write_text(new_content)
def replace_glob(parent: Path, glob: str, replacements: Dict[str, str]) -> None:
def replace_glob(parent: Path, glob: str, replacements: dict[str, str]) -> None:
for file in parent.glob(glob):
if not file.is_file():
continue