8000 Test polygon creation in test app py by wkentaro · Pull Request #1574 · wkentaro/labelme · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Test polygon creation in test app py #1574

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

Merged
merged 2 commits into from
Apr 1, 2025

Conversation

wkentaro
Copy link
Owner
@wkentaro wkentaro commented Apr 1, 2025

Why?

So that we can prevent an issue like: #1566

@wkentaro wkentaro self-assigned this Apr 1, 2025
@wkentaro wkentaro force-pushed the test_polygon_creation_in_test_app_py branch from e44e687 to 279ddde Compare April 1, 2025 10:56
@wkentaro wkentaro requested a review from Copilot April 1, 2025 10:56
Copy link
@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This pull request adds and refactors tests in the test app for polygon creation, helping prevent regression issues like those mentioned in the linked PR. Key changes include:

  • Renaming the helper function for showing the window and waiting for image data.
  • Adding type hints and annotations to test functions.
  • Introducing an expanded test for polygon creation in images.
Comments suppressed due to low confidence (1)

tests/labelme_tests/test_app.py:81

  • In test_MainWindow_openPrevImg, the method openNextImg() is used instead of openPrevImg(), which may not correctly test the intended functionality. Consider updating the call to win.openPrevImg() if testing the previous image functionality is intended.
win.openNextImg()

@wkentaro wkentaro merged commit 0d9f4ad into main Apr 1, 2025
3 checks passed
@wkentaro wkentaro deleted the test_polygon_creation_in_test_app_py branch April 1, 2025 11:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0