🎨 Format Python code with Black
This commit is contained in:
parent
19e9708946
commit
85ae7b24fa
2 changed files with 15 additions and 5 deletions
|
@ -89,7 +89,9 @@ def generate_READMEs(app_path: Path):
|
|||
)
|
||||
|
||||
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] = []
|
||||
|
||||
|
|
|
@ -17,15 +17,23 @@ def test_running_make_readme():
|
|||
tempdir = Path(tempdir)
|
||||
temporary_tested_app_directory = tempdir / TEST_APP_NAME
|
||||
|
||||
subprocess.check_call(["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
|
||||
["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...
|
||||
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__":
|
||||
|
|
Loading…
Reference in a new issue