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 tests for 6781 issue #7217

Merged
merged 3 commits into from
Dec 6, 2023
Merged

Add tests for 6781 issue #7217

merged 3 commits into from
Dec 6, 2023

Conversation

Marishka17
Copy link
Contributor

Motivation and context

This PR contains REST API tests for #6801

How has this been tested?

Checklist

  • I submit my changes into the develop branch
    - [ ] I have created a changelog fragment
    - [ ] I have updated the documentation accordingly
  • I have added tests to cover my changes
  • I have linked related issues (see GitHub docs)
    - [ ] I have increased versions of npm packages if it is necessary
    (cvat-canvas,
    cvat-core,
    cvat-data and
    cvat-ui)

License

  • I submit my code changes under the same MIT License that covers the project.
    Feel free to contact the maintainers if that's a concern.

Copy link

codecov bot commented Dec 4, 2023

Codecov Report

Merging #7217 (273621c) into develop (ff1b568) will increase coverage by 0.05%.
Report is 10 commits behind head on develop.
The diff coverage is n/a.

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     
Components Coverage Δ
cvat-ui 75.41% <ø> (-0.09%) ⬇️
cvat-server 87.09% <ø> (-0.01%) ⬇️

DATASET_FORMAT = "CVAT for images 1.1"

def _test_export_task(
self, username: str, tid: int, dataset_format: Optional[str] = None, **kwargs
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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.

response = export_dataset(
api_client.tasks_api.retrieve_dataset_endpoint,
id=task["id"],
format=self.DATASET_FORMAT,
Copy link
Contributor

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.

tests/python/rest_api/test_tasks.py Show resolved Hide resolved
@SpecLad SpecLad merged commit 67b80c2 into develop Dec 6, 2023
34 checks passed
@SpecLad SpecLad deleted the mk/add_tests_for_6781_issue branch December 6, 2023 10:17
amjadsaadeh pushed a commit to amjadsaadeh/cvat that referenced this pull request Dec 14, 2023
This PR contains REST API tests for
cvat-ai#6801
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants