mirror of
https://codeberg.org/fediverse/fep.git
synced 2026-08-05 19:55:46 +00:00
fa3c8edeb6
FEP-a4ed requires facilitators to contact authors of a stale proposal before withdrawing it. As our experience shows, that doesn't work. In this PR I propose withdrawing stale proposals after 1 year of inactivity without contacting authors. This is a major change. I think even if we agree on it, existing proposals should be handled according to the old procedure. Resolves https://codeberg.org/fediverse/fep/issues/101 Reviewed-on: https://codeberg.org/fediverse/fep/pulls/543 Reviewed-by: Arnold Schrijver <circlebuilder@noreply.codeberg.org> Co-authored-by: silverpill <silverpill@firemail.cc> Co-committed-by: silverpill <silverpill@firemail.cc>
44 lines
1.1 KiB
Python
44 lines
1.1 KiB
Python
from datetime import date, timedelta
|
|
|
|
from .issue import parse_and_update_date_received, create_body
|
|
|
|
|
|
def test_parse_and_update_date_received():
|
|
today = date.today()
|
|
result = parse_and_update_date_received(today.isoformat())
|
|
|
|
assert result == today
|
|
|
|
|
|
def test_parse_and_update_date_received_parse_error():
|
|
today = date.today()
|
|
result = parse_and_update_date_received("incorrect")
|
|
|
|
assert result == today
|
|
|
|
|
|
def test_parse_and_update_date_received_outdated():
|
|
today = date.today()
|
|
result = parse_and_update_date_received((today - timedelta(days=60)).isoformat())
|
|
|
|
assert result == today
|
|
|
|
|
|
def test_create_body():
|
|
result = create_body("fep-0000.md", date(2025, 2, 8))
|
|
|
|
assert (
|
|
result
|
|
== """
|
|
The [proposal](https://codeberg.org/fediverse/fep/src/branch/main/fep-0000.md) has been received. Thank you!
|
|
|
|
This issue tracks discussions and updates to the proposal during the `DRAFT` period.
|
|
|
|
Please post links to relevant discussions as comments to this issue.
|
|
|
|
`dateReceived`: 2025-02-08
|
|
|
|
If no further actions are taken, the proposal will be set by the facilitators to `WITHDRAWN` on 2027-02-08 (in 2 years).
|
|
"""
|
|
)
|