Browse Source

Remove unused code and data

pull/1659/head
Hironsan 2 years ago
parent
commit
27311f8ece
2 changed files with 0 additions and 13 deletions
  1. BIN
      backend/api/tests/api/data/images/1500x500.jpeg
  2. 13
      backend/api/tests/api/utils.py

BIN
backend/api/tests/api/data/images/1500x500.jpeg

Before After
Width: 1500  |  Height: 500  |  Size: 83 KiB

13
backend/api/tests/api/utils.py

@ -142,19 +142,6 @@ def prepare_project(task: str = 'Any', collaborative_annotation=False, **kwargs)
)
class TestUtilsMixin:
def _patch_project(self, project, attribute, value):
old_value = getattr(project, attribute, None)
setattr(project, attribute, value)
project.save()
def cleanup_project():
setattr(project, attribute, old_value)
project.save()
self.addCleanup(cleanup_project)
class CRUDMixin(APITestCase):
url = ''
data = {}

Loading…
Cancel
Save