Skip to content

Commit

Permalink
cleanup filesfolders tests (#1389)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikkonie committed Jun 28, 2024
1 parent adf2b56 commit 383bc0a
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
6 changes: 3 additions & 3 deletions filesfolders/tests/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def make_hyperlink(


class TestFolder(FolderMixin, ProjectMixin, HyperLinkMixin, TestCase):
"""Tests for model.Folder"""
"""Tests for Folder"""

def setUp(self):
# Make owner user
Expand Down Expand Up @@ -234,7 +234,7 @@ def test_has_in_path_false(self):


class TestFile(FileMixin, FolderMixin, ProjectMixin, TestCase):
"""Tests for model.File"""
"""Tests for File"""

def setUp(self):
# Make owner user
Expand Down Expand Up @@ -332,7 +332,7 @@ def test_file_deletion(self):
class TestHyperLink(
FileMixin, FolderMixin, ProjectMixin, HyperLinkMixin, TestCase
):
"""Tests for model.File"""
"""Tests for HyperLink"""

def setUp(self):
# Make owner user
Expand Down
2 changes: 1 addition & 1 deletion filesfolders/tests/test_permissions.py
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ def test_get_archive(self):
class TestFileCreateView(
FilesfoldersPermissionTestMixin, ProjectPermissionTestBase
):
"""Tests FileCreateView permissions"""
"""Tests for FileCreateView permissions"""

def setUp(self):
super().setUp()
Expand Down
14 changes: 7 additions & 7 deletions filesfolders/tests/test_permissions_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class FilesfoldersAPIPermissionTestBase(


class TestFolderListCreateAPIView(FilesfoldersAPIPermissionTestBase):
"""Tests FolderListCreateAPIView permissions"""
"""Tests for FolderListCreateAPIView permissions"""

def setUp(self):
super().setUp()
Expand Down Expand Up @@ -192,7 +192,7 @@ def test_post_archive(self):


class TestFolderRetrieveUpdateDestroyAPIView(FilesfoldersAPIPermissionTestBase):
"""Tests FolderRetrieveUpdateDestroyAPIView permissions"""
"""Tests for FolderRetrieveUpdateDestroyAPIView permissions"""

def _make_folder(self):
folder = self.make_test_folder()
Expand Down Expand Up @@ -501,7 +501,7 @@ def test_delete_archive(self):


class TestFileListCreateAPIView(FilesfoldersAPIPermissionTestBase):
"""Tests FileListCreateAPIView permissions"""
"""Tests for FileListCreateAPIView permissions"""

def _make_post_data(self):
self.post_data = {
Expand Down Expand Up @@ -729,7 +729,7 @@ def test_post_archive(self):


class TestFileRetrieveUpdateDestroyAPIView(FilesfoldersAPIPermissionTestBase):
"""Tests FileRetrieveUpdateDestroyAPIView permissions"""
"""Tests for FileRetrieveUpdateDestroyAPIView permissions"""

def _make_file(self):
file = self.make_test_file()
Expand Down Expand Up @@ -1145,7 +1145,7 @@ def test_delete_archive(self):


class TestFileServeAPIView(FilesfoldersAPIPermissionTestBase):
"""Tests FileServeAPIView permissions"""
"""Tests for FileServeAPIView permissions"""

def setUp(self):
super().setUp()
Expand Down Expand Up @@ -1205,7 +1205,7 @@ def test_get_archive(self):


class TestHyperLinkListCreateAPIView(FilesfoldersAPIPermissionTestBase):
"""Tests HyperLinkListCreateAPIView permissions"""
"""Tests for HyperLinkListCreateAPIView permissions"""

@classmethod
def _cleanup(cls):
Expand Down Expand Up @@ -1383,7 +1383,7 @@ def test_post_archive(self):
class TestHyperLinkRetrieveUpdateDestroyAPIView(
FilesfoldersAPIPermissionTestBase
):
"""Tests HyperLinkRetrieveUpdateDestroyAPIView permissions"""
"""Tests for HyperLinkRetrieveUpdateDestroyAPIView permissions"""

def _make_link(self):
link = self.make_test_link()
Expand Down
2 changes: 1 addition & 1 deletion filesfolders/tests/test_plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class TestPlugins(
RoleAssignmentMixin,
TestCase,
):
"""Test filesfolders plugin"""
"""Tests for filesfolders project plugin"""

def setUp(self):
# Init superuser
Expand Down
4 changes: 2 additions & 2 deletions filesfolders/tests/test_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
APP_NAME = 'filesfolders'


class TestListView(FolderMixin, FileMixin, HyperLinkMixin, UITestBase):
"""Tests for filesfolders main file list view UI"""
class TestProjectFileView(FolderMixin, FileMixin, HyperLinkMixin, UITestBase):
"""Tests for ProjectFileView UI"""

def setUp(self):
super().setUp()
Expand Down

0 comments on commit 383bc0a

Please sign in to comment.