-
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
Fix REST API tests #5416
Fix REST API tests #5416
Conversation
/check |
❌ Some checks failed |
/check |
❌ Some checks failed |
tests/python/shared/fixtures/data.py
Outdated
def find(tasks, skip_tasks=None): | ||
def _is_task_with_shapes(t): | ||
if ( | ||
skip_tasks is not None | ||
and t["id"] in skip_tasks | ||
or not annotations["task"][str(t["id"])]["shapes"] | ||
): | ||
return False | ||
return True |
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.
Can we use such solution?
def find(tasks, skip_tasks=None): | |
def _is_task_with_shapes(t): | |
if ( | |
skip_tasks is not None | |
and t["id"] in skip_tasks | |
or not annotations["task"][str(t["id"])]["shapes"] | |
): | |
return False | |
return True | |
def find(tasks): | |
def _is_task_with_shapes(t): | |
if ( | |
not t.get("data") | |
or not annotations["task"][str(t["id"])]["shapes"] | |
): | |
return False | |
return True |
It won't make us always remember about skip_tasks
.
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.
ok, thanks
0dec58a
to
c698644
Compare
@bsekachev Are these e2e tests unstable? Or are they related with this PR? |
@kirill-sizov case_82_canvas3d_functionality_cuboid_opacity_outlined_borders.js This one was fixed: #5409 (comment) case_118_multi_tasks.js Was quite stable before, not sure why it is failed here. |
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.
LGTM
Fixed REST API tests after merging cvat-ai#5408 and cvat-ai#5396 to develop Co-authored-by: Boris Sekachev <sekachev.bs@gmail.com> Co-authored-by: Nikita Manovich <nikita@cvat.ai>
Motivation and context
Fixed REST API tests after merging #5408 and #5396 to develop