Edit subtitles and menu text
This commit is contained in:
@@ -57,7 +57,13 @@ def test_characters_csv_covers_user_lists():
|
||||
|
||||
|
||||
def test_shipped_csvs_are_consistent():
|
||||
from ackit import subtitles
|
||||
for f in os.listdir(catalog_dir()):
|
||||
if f.startswith("SUB_") and f.endswith(".csv"):
|
||||
lines = subtitles.read_texts(os.path.join(catalog_dir(), f), f[4:7])
|
||||
assert len({(s.speech, s.line) for s in lines}) == len(lines), f
|
||||
assert all(len(s.text) <= s.room for s in lines), f
|
||||
continue
|
||||
if f.endswith(".csv") and f != "characters.csv":
|
||||
rows = read_csv(os.path.join(catalog_dir(), f))
|
||||
keys = {r.key for r in rows}
|
||||
|
||||
Reference in New Issue
Block a user