Skip to content

Commit

Permalink
Add test filter
Browse files Browse the repository at this point in the history
  • Loading branch information
triole committed Oct 28, 2019
1 parent 9a8a11b commit 4c59f5d
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions rdmo/projects/tests/test_viewsets.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,11 +132,12 @@ def _test_update_viewset(self, username):

def _test_delete_viewset(self, username):
for instance in self.instances:
self.assert_delete_viewset(username, kwargs={
'parent_lookup_project': self.project_id,
'pk': instance.pk
})
instance.save(update_fields=None)
if username not in str(instance):
self.assert_delete_viewset(username, kwargs={
'parent_lookup_project': self.project_id,
'pk': instance.pk
})
instance.save(update_fields=None)


class ProjectValueTests(TestViewsetMixin, TestSingleObjectMixin, ProjectsViewsetTestCase):
Expand Down

0 comments on commit 4c59f5d

Please sign in to comment.