-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
[WIP] Server tests. Dataset manager. #3004
Conversation
Commented out tests passed Ok Uncommented tests failed if launched in single test session, seems that tasks created via POST request to url /api/v1/tasks have the same id (1)
# create task with annotations | ||
images = self._generate_task_images(3) | ||
task = self._create_task(tasks["main"], images) | ||
self._create_annotations(task, dump_format_name, "default") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
_create_annotations
function and other tests use "dafault"
How this branch is related to #2943? Please read my comments there. |
@zhiltsov-max , this is fork of #2943 |
# url_upload = self._generate_url_upload_tasks_annotations(task_id, upload_format_name) | ||
# with open(file_zip_name_after_change, 'rb') as binary_file: | ||
# with self.assertRaisesRegex(ValueError, f"Label '{wrong_label}' is not registered for this task"): | ||
# response = self._upload_file(url_upload, binary_file, self.admin) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You probably shouldn't try to catch the exception here, since it was handled earlier.
…zuevx/cvat into mz/server_test_dataset_manager
…zuevx/cvat into mz/server_test_dataset_manager
…zuevx/cvat into mz/server_test_dataset_manager
…o mz/server_test_dataset_manager
We have another PR for these tests: #3192 |
Motivation and context
How has this been tested?
Checklist
develop
branchcvat-core, cvat-data and cvat-ui)
License
Feel free to contact the maintainers if that's a concern.