diff --git a/ietf/meeting/tests_views.py b/ietf/meeting/tests_views.py
index f951eb682..642edcb9b 100644
--- a/ietf/meeting/tests_views.py
+++ b/ietf/meeting/tests_views.py
@@ -7173,6 +7173,20 @@ class SessionTests(TestCase):
status_id='schedw',
add_to_schedule=False,
)
+ session_with_none_purpose = SessionFactory(
+ meeting=meeting,
+ group__parent=area,
+ purpose_id="none",
+ status_id="schedw",
+ add_to_schedule=False,
+ )
+ tutorial_session = SessionFactory(
+ meeting=meeting,
+ group__parent=area,
+ purpose_id="tutorial",
+ status_id="schedw",
+ add_to_schedule=False,
+ )
def _sreq_edit_link(sess):
return urlreverse(
'ietf.secr.sreq.views.edit',
@@ -7211,6 +7225,8 @@ class SessionTests(TestCase):
self.assertContains(r, _sreq_edit_link(proposed_wg_session)) # link to the session request
self.assertContains(r, rg_session.group.acronym)
self.assertContains(r, _sreq_edit_link(rg_session)) # link to the session request
+ self.assertContains(r, session_with_none_purpose.group.acronym)
+ self.assertContains(r, tutorial_session.group.acronym)
# check headings - note that the special types (has_meetings, etc) do not have a group parent
# so they show up in 'other'
q = PyQuery(r.content)
@@ -7218,6 +7234,22 @@ class SessionTests(TestCase):
self.assertEqual(len(q('h2#other-groups')), 1)
self.assertEqual(len(q('h2#irtf')), 1) # rg group has irtf group as parent
+ # check rounded pills
+ self.assertNotContains( # no rounded pill for sessions with regular purpose
+ r,
+ 'Regular',
+ html=True,
+ )
+ self.assertNotContains( # no rounded pill for session with no purpose specified
+ r,
+ 'None',
+ html=True,
+ )
+ self.assertContains( # rounded pill for session with non-regular purpose
+ r,
+ 'Tutorial',
+ html=True,
+ )
def test_request_minutes(self):
meeting = MeetingFactory(type_id='ietf')
diff --git a/ietf/templates/meeting/requests.html b/ietf/templates/meeting/requests.html
index 18d8c5cf8..3008ceb66 100644
--- a/ietf/templates/meeting/requests.html
+++ b/ietf/templates/meeting/requests.html
@@ -154,7 +154,7 @@
{{ session.group.acronym }}
- {% if session.purpose_id != "regular" %}
+ {% if session.purpose_id != "regular" and session.purpose_id != "none" %}
{{session.purpose}}
{% endif %}
{% if session.joint_with_groups.count %}joint with {{ session.joint_with_groups_acronyms|join:' ' }}{% endif %}