Added test for proper eneration of the approval message with and without an RFC Editor Note.
- Legacy-Id: 10839
This commit is contained in:
parent
6cf8680a16
commit
b4b14112b8
|
@ -478,6 +478,21 @@ class ApproveBallotTests(TestCase):
|
|||
q = PyQuery(r.content)
|
||||
self.assertTrue(q('[type=submit]:contains("send announcement")'))
|
||||
self.assertEqual(len(q('form pre:contains("Subject: Protocol Action")')), 1)
|
||||
self.assertEqual(len(q('form pre:contains("This is a note for the RFC Editor")')), 0)
|
||||
|
||||
# add a note to the RFC Editor
|
||||
WriteupDocEvent.objects.create(
|
||||
doc=draft,
|
||||
desc="Changed text",
|
||||
type="changed_rfc_editor_note_text",
|
||||
text="This is a note for the RFC Editor.",
|
||||
by=Person.objects.get(name="(System)"))
|
||||
r = self.client.get(url)
|
||||
self.assertEqual(r.status_code, 200)
|
||||
q = PyQuery(r.content)
|
||||
self.assertTrue(q('[type=submit]:contains("send announcement")'))
|
||||
self.assertEqual(len(q('form pre:contains("Subject: Protocol Action")')), 1)
|
||||
self.assertEqual(len(q('form pre:contains("This is a note for the RFC Editor")')), 1)
|
||||
|
||||
# approve
|
||||
mailbox_before = len(outbox)
|
||||
|
|
|
@ -200,7 +200,7 @@
|
|||
<th>
|
||||
{% if doc.stream.slug != "legacy" %}
|
||||
<a href="{% url "ietf.help.views.state" doc=doc.type.slug type=doc.stream.slug %}">
|
||||
{% if doc.stream.slug == "ietf" %} WG {% else %} {{ doc.stream }} {% endif %} state
|
||||
{% if doc.stream_id == 'ietf' %} WG {% else %} {{ doc.stream }} {% endif %} state
|
||||
</a>
|
||||
{% else %}
|
||||
Legacy state
|
||||
|
@ -229,7 +229,7 @@
|
|||
{% endif %}
|
||||
</tr>
|
||||
|
||||
{% if consensus and not stream_state_type_slug == "draft-stream-ietf" %}
|
||||
{% if consensus and not doc.stream_id == 'ietf' %}
|
||||
<tr>
|
||||
<th></th>
|
||||
<th>Consensus</th>
|
||||
|
@ -264,7 +264,7 @@
|
|||
</tr>
|
||||
{% endif %}
|
||||
|
||||
{% if stream_state_type_slug == "draft-stream-ietf" %}
|
||||
{% if doc.stream_id == 'ietf' %}
|
||||
<tr>
|
||||
<th></th>
|
||||
<th>Document shepherd</th>
|
||||
|
@ -325,7 +325,7 @@
|
|||
|
||||
</tbody>
|
||||
|
||||
{% if not stream_state_type_slug == "draft-stream-iab" %}
|
||||
{% if not doc.stream_id == 'iab' %}
|
||||
<tbody class="meta">
|
||||
<tr>
|
||||
<th>IESG</th>
|
||||
|
@ -340,7 +340,7 @@
|
|||
</td>
|
||||
</tr>
|
||||
|
||||
{% if consensus and stream_state_type_slug == "draft-stream-ietf" %}
|
||||
{% if consensus and doc.stream_id == 'ietf' %}
|
||||
<tr>
|
||||
<th></th>
|
||||
<th>Consensus</th>
|
||||
|
|
Loading…
Reference in a new issue