Skip to content

Commit

Permalink
Modify tests
Browse files Browse the repository at this point in the history
  • Loading branch information
triole committed Oct 28, 2019
1 parent 6506fa7 commit c46fd7e
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions rdmo/projects/tests/test_viewsets.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,14 +130,14 @@ def _test_update_viewset(self, username):
'pk': instance.pk
}, data=self.get_instance_as_dict(instance))

def _test_delete_viewset(self, username):
for instance in self.instances:
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)
# def _test_delete_viewset(self, username):
# for instance in self.instances:
# 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 c46fd7e

Please sign in to comment.