Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add test to remove project data #5752

Merged
merged 4 commits into from
Feb 24, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ Tracks can be exported/imported to/from Datumaro and Sly Pointcloud formats (<ht
- Export annotations to Azure container (<https://github.com/opencv/cvat/pull/5596>)
- Fix the type of the credentials parameter of make_client from the Python SDK
- Reduced number of noisy information on ortho views for 3D canvas (<https://github.com/opencv/cvat/pull/5608>)
- Clean up disk space after a project is removed (<https://github.com/opencv/cvat/pull/5632>)
- Clean up disk space after a project is removed (<https://github.com/opencv/cvat/pull/5632>, <https://github.com/opencv/cvat/pull/5752>)
- \[Server API\] Various errors in the generated schema (<https://github.com/opencv/cvat/pull/5575>)
- SiamMask and TransT serverless functions (<https://github.com/opencv/cvat/pull/5658>)
- \[Server API\] Ability to rename label to an existing name (<https://github.com/opencv/cvat/pull/5662>)
Expand Down
9 changes: 9 additions & 0 deletions cvat/apps/engine/tests/test_rest_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -956,6 +956,15 @@ def test_api_v2_projects_id_somebody(self):
def test_api_v2_projects_id_no_auth(self):
self._check_api_v2_projects_id(None)

def test_api_v2_projects_delete_project_data_after_delete_project(self):
for project in self.projects:
project_dir = project.get_dirname()
self.assertTrue(os.path.exists(project_dir))
self._check_api_v2_projects_id(self.admin)
for project in self.projects:
project_dir = project.get_dirname()
self.assertFalse(os.path.exists(project_dir))
yasakova-anastasia marked this conversation as resolved.
Show resolved Hide resolved

class ProjectCreateAPITestCase(APITestCase):
def setUp(self):
self.client = APIClient()
Expand Down