Skip to content

Commit 4a2868c

Browse files
committed
Added a negative test to ensure the RFC Editor is not included on notifications of manual posts by the Secretariat unless the document is in the RFC Editor Queue.
- Legacy-Id: 10591
1 parent 014e79f commit 4a2868c

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

ietf/secr/drafts/tests_views.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,13 @@ def test_email(self):
8787

8888
def test_get_email_initial(self):
8989
# Makes sure that a manual posting by the Secretariat of an I-D that is
90-
# in the RFC Editor Queue will result in notification of the RFC Editor
90+
# in the RFC Editor Queue will result in notification of the RFC Editor,
91+
# but earlier in the approval process does not
9192
draft = make_test_data()
93+
state = State.objects.get(type='draft-iesg',slug='ad-eval')
94+
draft.set_state(state)
95+
data = get_email_initial(draft,type='revision')
96+
self.assertFalse('rfc-editor@rfc-editor.org' in data['to'])
9297
state = State.objects.get(type='draft-iesg',slug='rfcqueue')
9398
draft.set_state(state)
9499
data = get_email_initial(draft,type='revision')

0 commit comments

Comments
 (0)