Skip to content

Commit a1e7dc9

Browse files
committed
Changed a function name.
- Legacy-Id: 16386
1 parent 81fa6dc commit a1e7dc9

3 files changed

Lines changed: 9 additions & 8 deletions

File tree

ietf/doc/tests_conflict_review.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from ietf.group.models import Person
1919
from ietf.iesg.models import TelechatDate
2020
from ietf.name.models import StreamName
21-
from ietf.utils.test_utils import TestCase, unicontent
21+
from ietf.utils.test_utils import TestCase
2222
from ietf.utils.mail import outbox, empty_outbox
2323
from ietf.utils.test_utils import login_testing_unauthorized
2424

@@ -265,7 +265,7 @@ def test_edit_telechat_date(self):
265265
def approve_test_helper(self,approve_type):
266266

267267
doc = Document.objects.get(name='conflict-review-imaginary-irtf-submission')
268-
url = urlreverse('ietf.doc.views_conflict_review.approve',kwargs=dict(name=doc.name))
268+
url = urlreverse('ietf.doc.views_conflict_review.approve_conflict_review',kwargs=dict(name=doc.name))
269269

270270
login_testing_unauthorized(self, "secretary", url)
271271

@@ -297,12 +297,13 @@ def approve_test_helper(self,approve_type):
297297
self.assertIn('irtf-chair', outbox[0]['To'])
298298
self.assertIn('ietf-announce@', outbox[0]['Cc'])
299299
self.assertIn('iana@', outbox[0]['Cc'])
300+
300301
if approve_type == 'appr-noprob':
301-
self.assertContains(r, 'IESG has no problem')
302+
self.assertIn( 'IESG has no problem', ''.join(wrap(outbox[0].get_payload(), 2**16)))
302303
else:
303-
self.assertContains(r, 'NOT be published')
304-
305-
304+
self.assertIn( 'NOT be published', ''.join(wrap(outbox[0].get_payload(), 2**16)))
305+
306+
306307
def test_approve_reqnopub(self):
307308
self.approve_test_helper('appr-reqnopub')
308309

ietf/doc/views_conflict_review.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ class AnnouncementForm(forms.Form):
301301
announcement_text = forms.CharField(widget=forms.Textarea, label="IETF Conflict Review Announcement", help_text="Edit the announcement message.", required=True, strip=False)
302302

303303
@role_required("Secretariat")
304-
def approve(request, name):
304+
def approve_conflict_review(request, name):
305305
"""Approve this conflict review, setting the appropriate state and send the announcement to the right parties."""
306306
review = get_object_or_404(Document, type="conflrev", name=name)
307307

ietf/templates/doc/document_conflict_review.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ <h2>Conflict review<br><small>{{ conflictdoc.name }}-{{ conflictdoc.rev }}</smal
135135
{% if not snapshot and user|has_role:"Area Director,Secretariat" %}
136136
{% if request.user|has_role:"Secretariat" %}
137137
{% if doc.get_state_slug == 'appr-reqnopub-pend' or doc.get_state_slug == 'appr-noprob-pend' %}
138-
<a class="btn btn-primary" href="{% url 'ietf.doc.views_conflict_review.approve' name=doc.name %}">Approve conflict review</a>
138+
<a class="btn btn-primary" href="{% url 'ietf.doc.views_conflict_review.approve_conflict_review' name=doc.name %}">Approve conflict review</a>
139139
{% endif %}
140140
{% endif %}
141141
{% endif %}

0 commit comments

Comments
 (0)