Skip to content

Commit

Permalink
test: focus on a helper rather than a whole view (#7951)
Browse files Browse the repository at this point in the history
  • Loading branch information
rjsparks authored Sep 17, 2024
1 parent 8362b45 commit 97b7195
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions ietf/meeting/tests_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
from ietf.group.models import Group, Role, GroupFeatures
from ietf.group.utils import can_manage_group
from ietf.person.models import Person, PersonalApiKey
from ietf.meeting.helpers import can_approve_interim_request, can_view_interim_request, preprocess_assignments_for_agenda
from ietf.meeting.helpers import can_approve_interim_request, can_request_interim_meeting, can_view_interim_request, preprocess_assignments_for_agenda
from ietf.meeting.helpers import send_interim_approval_request, AgendaKeywordTagger
from ietf.meeting.helpers import send_interim_meeting_cancellation_notice, send_interim_session_cancellation_notice
from ietf.meeting.helpers import send_interim_minutes_reminder, populate_important_dates, update_important_dates
Expand Down Expand Up @@ -7334,10 +7334,7 @@ def test_cannot_request_interim(self):
for gf in GroupFeatures.objects.filter(has_meetings=True):
for role_name in all_role_names - set(gf.groupman_roles):
role = RoleFactory(group__type_id=gf.type_id,name_id=role_name)
self.client.login(username=role.person.user.username, password=role.person.user.username+'+password')
r = self.client.get(url)
self.assertEqual(r.status_code, 403)
self.client.logout()
self.assertFalse(can_request_interim_meeting(role.person.user))

def test_appears_on_upcoming(self):
url = urlreverse('ietf.meeting.views.upcoming')
Expand Down

0 comments on commit 97b7195

Please sign in to comment.