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:
@@ -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(
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user