test: construct the right kind of document for the rfc-index tests

This commit is contained in:
Robert Sparks 2023-07-20 13:25:12 -05:00
parent 51c22d8e6c
commit 189c32194d
No known key found for this signature in database
GPG key ID: 6E2A6A5775F91318

View file

@ -14,7 +14,7 @@ from django.utils import timezone
import debug # pyflakes:ignore
from ietf.doc.factories import WgDraftFactory
from ietf.doc.factories import WgDraftFactory, RfcFactory
from ietf.doc.models import Document, DocAlias, DocEvent, DeletedEvent, DocTagName, RelatedDocument, State, StateDocEvent
from ietf.doc.utils import add_state_change_event
from ietf.group.factories import GroupFactory
@ -235,9 +235,7 @@ class RFCSyncTests(TestCase):
# too, but for testing purposes ...
doc.action_holders.add(doc.ad) # not normally set, but add to be sure it's cleared
updated_doc = Document.objects.create(name="draft-ietf-something")
DocAlias.objects.create(name=updated_doc.name).docs.add(updated_doc)
DocAlias.objects.create(name="rfc123").docs.add(updated_doc)
updated_doc = RfcFactory(rfc_number=123)
today = date_today()