1
0
mirror of https://codeberg.org/fediverse/fep.git synced 2026-08-08 21:45:52 +00:00

Update Scripts for dateWithdrawn information

This commit is contained in:
Helge
2023-09-06 19:44:58 +02:00
parent fdb40439e2
commit 973401f606
2 changed files with 7 additions and 0 deletions
+2
View File
@@ -25,6 +25,8 @@ for fep in fep_files:
if "dateFinalized" in parsed:
date_final = parsed["dateFinalized"]
elif "dateWithdrawn" in parsed:
date_final = parsed["dateWithdrawn"]
else:
date_final = "-"
result.append(
+5
View File
@@ -16,6 +16,11 @@ def test_fep(fep):
assert parsed_frontmatter["slug"] == f'"{fep}"'
assert "authors" in parsed_frontmatter
if parsed_frontmatter["status"] == "FINAL":
assert "dateFinalized" in parsed_frontmatter
if parsed_frontmatter["status"] == "WITHDRAWN":
assert "dateWithdrawn" in parsed_frontmatter
assert "## Summary" in content
assert "## Copyright" in content