Skip to content

refactor: move assert_labelfile_sanity from labelme package to tests#1929

Merged
wkentaro merged 1 commit intomainfrom
refactor/move-testing-to-tests
Apr 8, 2026
Merged

refactor: move assert_labelfile_sanity from labelme package to tests#1929
wkentaro merged 1 commit intomainfrom
refactor/move-testing-to-tests

Conversation

@wkentaro
Copy link
Copy Markdown
Owner

@wkentaro wkentaro commented Apr 8, 2026

Summary

  • Move assert_labelfile_sanity from labelme/testing.py to tests/conftest.py since it's only used in e2e tests
  • Fix unclosed file handle (json.load(open(...)) → context manager)
  • Fix non-snake_case variables (imageDataimage_data, H, Wheight, width)
  • Delete labelme/testing.py

Test plan

  • Verify e2e tests pass with updated imports

The function is only used in e2e tests and doesn't belong in the
production package. Also fix unclosed file handle and non-snake_case
variable names.
@wkentaro wkentaro self-assigned this Apr 8, 2026
@wkentaro wkentaro added this to the v6.1.0 milestone Apr 8, 2026
@wkentaro wkentaro merged commit 9720fff into main Apr 8, 2026
5 checks passed
@wkentaro wkentaro deleted the refactor/move-testing-to-tests branch April 8, 2026 12:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant