-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Fix test_tasks.py::TestImportTaskAnnotations::test_check_import_error_on_wrong_file_structure
#9303
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 test_tasks.py::TestImportTaskAnnotations::test_check_import_error_on_wrong_file_structure
#9303
Conversation
dbd3114
to
231edc4
Compare
231edc4
to
231d0f6
Compare
@@ -1674,8 +1674,8 @@ def _import(src_file, temp_dir, instance_data, load_data_callback=None, **kwargs | |||
if is_zip: | |||
zipfile.ZipFile(src_file).extractall(temp_dir) | |||
|
|||
detect_dataset(temp_dir, format_name="cvat", importer=_CvatImporter) |
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.
I don't see the reason why we should check the uploaded file structure only when importing into a project
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.
The change looks reasonable to me, but since it's user-facing, you should add a changelog entry.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #9303 +/- ##
===========================================
- Coverage 74.17% 73.77% -0.41%
===========================================
Files 428 436 +8
Lines 44964 45551 +587
Branches 3917 3920 +3
===========================================
+ Hits 33352 33603 +251
- Misses 11612 11948 +336
🚀 New features to boost your workflow:
|
|
Motivation and context
There were several issues with this test, like:
How has this been tested?
Checklist
develop
branchLicense
Feel free to contact the maintainers if that's a concern.