Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
claire-peters committed Dec 11, 2023
1 parent c467196 commit 67c1989
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions coldfront/core/project/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,12 @@ def test_projectdetail_permissions(self):

def test_projectdetail_request_allocation_button_visibility(self):
"""Test visibility of project detail request allocation button to different projectuser levels"""
utils.page_contains_for_user(self, self.admin_user, self.url, 'Request Storage Allocation') # admin can see request allocation button
utils.page_contains_for_user(self, self.admin_user, self.url, 'Request New Storage Allocation') # admin can see request allocation button

utils.page_contains_for_user(self, self.pi_user, self.url, 'Request Storage Allocation') # pi can see request allocation button
utils.page_contains_for_user(self, self.pi_user, self.url, 'Request New Storage Allocation') # pi can see request allocation button

response = utils.login_and_get_page(self.client, self.project_user, self.url)
self.assertNotContains(response, 'Request Storage Allocation') # non-manager user cannot see request allocation button
self.assertNotContains(response, 'Request New Storage Allocation') # non-manager user cannot see request allocation button

def test_projectdetail_edituser_button_visibility(self):
"""Test visibility of project detail edit button to different projectuser levels"""
Expand Down

0 comments on commit 67c1989

Please sign in to comment.