diff --git a/CHANGELOG.md b/CHANGELOG.md index 3cef0f005d69..060ba53e0d94 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -67,7 +67,7 @@ Tracks can be exported/imported to/from Datumaro and Sly Pointcloud formats () - 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 () -- Clean up disk space after a project is removed () +- Clean up disk space after a project is removed (, ) - Submit button is locked while file is not selected when importing a dataset () - \[Server API\] Various errors in the generated schema () - SiamMask and TransT serverless functions () diff --git a/cvat/apps/engine/tests/test_rest_api.py b/cvat/apps/engine/tests/test_rest_api.py index c4e86724b5de..f9e7efb774ab 100644 --- a/cvat/apps/engine/tests/test_rest_api.py +++ b/cvat/apps/engine/tests/test_rest_api.py @@ -956,6 +956,28 @@ 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): + tasks = {} + for project in self.projects: + tasks[project.name] = create_dummy_db_tasks(self.__class__, project) + + project_dir = project.get_dirname() + self.assertTrue(os.path.exists(project_dir)) + + for task in tasks[project.name]: + task_dir = task.get_dirname() + self.assertTrue(os.path.exists(task_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)) + + for task in tasks[project.name]: + task_dir = task.get_dirname() + self.assertFalse(os.path.exists(task_dir)) + class ProjectCreateAPITestCase(APITestCase): def setUp(self): self.client = APIClient()