-
Notifications
You must be signed in to change notification settings - Fork 369
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feat/iabstatements
- Loading branch information
Showing
244 changed files
with
603 additions
and
532 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ | |
from django.conf import settings | ||
from django.urls import reverse as urlreverse | ||
|
||
from ietf.doc.factories import DocumentFactory, IndividualRfcFactory, WgRfcFactory | ||
from ietf.doc.factories import DocumentFactory, IndividualRfcFactory, WgRfcFactory, DocEventFactory | ||
from ietf.doc.models import ( Document, DocAlias, State, DocEvent, | ||
BallotPositionDocEvent, NewRevisionDocEvent, TelechatDocEvent, WriteupDocEvent ) | ||
from ietf.doc.utils import create_ballot_if_not_open | ||
|
@@ -86,6 +86,16 @@ def test_start_review(self): | |
status_change = Document.objects.get(name='status-change-imaginary-new2') | ||
self.assertIsNone(status_change.ad) | ||
|
||
# Verify that the right thing happens if a control along the way uppercases RFC | ||
r = self.client.post(url,dict( | ||
document_name="imaginary-new3",title="A new imaginary status change", | ||
create_in_state=state_strpk,notify='[email protected]',new_relation_row_blah="RFC9999", | ||
statchg_relation_row_blah="tois") | ||
) | ||
self.assertEqual(r.status_code, 302) | ||
status_change = Document.objects.get(name='status-change-imaginary-new3') | ||
self.assertTrue(status_change.relateddocument_set.filter(relationship__slug='tois',target__name='rfc9999')) | ||
|
||
|
||
def test_change_state(self): | ||
|
||
|
@@ -289,7 +299,19 @@ def test_edit_lc(self): | |
self.assertEqual(r.status_code,200) | ||
self.assertContains(r, 'RFC9999 from Proposed Standard to Internet Standard') | ||
self.assertContains(r, 'RFC9998 from Informational to Historic') | ||
|
||
q = PyQuery(r.content) | ||
self.assertEqual(len(q("button[name='send_last_call_request']")), 1) | ||
|
||
# Make sure request LC isn't offered with no responsible AD. | ||
doc.ad = None | ||
doc.save_with_history([DocEventFactory(doc=doc)]) | ||
r = self.client.get(url) | ||
self.assertEqual(r.status_code,200) | ||
q = PyQuery(r.content) | ||
self.assertEqual(len(q("button[name='send_last_call_request']")), 0) | ||
doc.ad = Person.objects.get(name='Ad No2') | ||
doc.save_with_history([DocEventFactory(doc=doc)]) | ||
|
||
# request last call | ||
messages_before = len(outbox) | ||
r = self.client.post(url,dict(last_call_text='stuff',send_last_call_request='Save+and+Request+Last+Call')) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.