-
Notifications
You must be signed in to change notification settings - Fork 3k
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 tests for 6781 issue #7217
Add tests for 6781 issue #7217
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## develop #7217 +/- ##
===========================================
+ Coverage 81.48% 81.54% +0.05%
===========================================
Files 365 365
Lines 39918 39261 -657
Branches 3703 3631 -72
===========================================
- Hits 32526 32014 -512
+ Misses 7392 7247 -145
|
tests/python/rest_api/test_tasks.py
Outdated
DATASET_FORMAT = "CVAT for images 1.1" | ||
|
||
def _test_export_task( | ||
self, username: str, tid: int, dataset_format: Optional[str] = None, **kwargs |
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.
self, username: str, tid: int, dataset_format: Optional[str] = None, **kwargs | |
self, username: str, tid: int, *, format: Optional[str] = None, **kwargs |
There doesn't seem to be much reason to change format
to dataset_format
.
tests/python/rest_api/test_tasks.py
Outdated
response = export_dataset( | ||
api_client.tasks_api.retrieve_dataset_endpoint, | ||
id=task["id"], | ||
format=self.DATASET_FORMAT, |
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.
Isn't this redundant? self.DATASET_FORMAT
is supposed to be the default.
This PR contains REST API tests for cvat-ai#6801
Motivation and context
This PR contains REST API tests for #6801
How has this been tested?
Checklist
develop
branch- [ ] I have created a changelog fragment- [ ] I have updated the documentation accordingly- [ ] I have increased versions of npm packages if it is necessary(cvat-canvas,
cvat-core,
cvat-data and
cvat-ui)
License
Feel free to contact the maintainers if that's a concern.