1
0
Fork 0

🎨 Format Python code with Black

This commit is contained in:
OniriCorpe 2024-03-24 04:45:38 +00:00 committed by Bram
parent 19e9708946
commit 85ae7b24fa
2 changed files with 15 additions and 5 deletions

View file

@ -89,7 +89,9 @@ def generate_READMEs(app_path: Path):
) )
fully_translated_langs.sort() fully_translated_langs.sort()
print(f"Available languages for translation: {', '.join(fully_translated_langs) if fully_translated_langs else []}") print(
f"Available languages for translation: {', '.join(fully_translated_langs) if fully_translated_langs else []}"
)
screenshots: List[str] = [] screenshots: List[str] = []

View file

@ -17,15 +17,23 @@ def test_running_make_readme():
tempdir = Path(tempdir) tempdir = Path(tempdir)
temporary_tested_app_directory = tempdir / TEST_APP_NAME temporary_tested_app_directory = tempdir / TEST_APP_NAME
subprocess.check_call(["git", "clone", "-q", TEST_APP_REPO, temporary_tested_app_directory])
subprocess.check_call( subprocess.check_call(
["git", "checkout", "-q", TEST_APP_COMMIT_ID], cwd=temporary_tested_app_directory ["git", "clone", "-q", TEST_APP_REPO, temporary_tested_app_directory]
)
subprocess.check_call(
["git", "checkout", "-q", TEST_APP_COMMIT_ID],
cwd=temporary_tested_app_directory,
) )
# Now run test... # Now run test...
subprocess.check_call([TEST_DIRECTORY.parent / "make_readme.py", temporary_tested_app_directory]) subprocess.check_call(
[TEST_DIRECTORY.parent / "make_readme.py", temporary_tested_app_directory]
)
assert open(TEST_DIRECTORY / "README.md").read() == open(temporary_tested_app_directory / "README.md").read() assert (
open(TEST_DIRECTORY / "README.md").read()
== open(temporary_tested_app_directory / "README.md").read()
)
if __name__ == "__main__": if __name__ == "__main__":