Skip to content

Commit

Permalink
remove test
Browse files Browse the repository at this point in the history
  • Loading branch information
claire-peters committed Sep 17, 2024
1 parent 0e6c6c0 commit 8350376
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions coldfront/core/project/tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,16 +310,6 @@ def test_pi_user_cannot_be_removed(self):
users_to_remove = context['formset'].initial
self.assertNotIn(self.pi_user.username, [u['username'] for u in users_to_remove])

@patch('coldfront.core.project.signals.project_preremove_projectuser.send')
def test_projectremove_users_signal_fail(self, mock_signal):
"""Test that the add users form fails when the signal sent to LDAP fails"""
self.client.force_login(self.proj_accessmanager)
mock_signal.side_effect = Exception("LDAP error occurred")
# Prepare form data for adding a user
response = self.client.post(self.url, data=self.form_data, follow=True)
self.assertContains(response, 'LDAP error occurred')
self.assertContains(response, 'Could not remove user')


class ProjectUpdateViewTest(ProjectViewTestBase):
"""Tests for ProjectUpdateView"""
Expand Down

0 comments on commit 8350376

Please sign in to comment.