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

[cuegui] Fix FrameContextMenu and test_rightClickItem to handle NoneType job attribute #1561

Conversation

ramonfigueiredo
Copy link
Collaborator

  • Ensure the job attribute is set before triggering the context menu event.
  • Mock the getLayers method to return an empty list to avoid NoneType errors.

- Ensure the job attribute is set before triggering the context menu event.
- Mock the getLayers method to return an empty list to avoid NoneType errors.
@ramonfigueiredo ramonfigueiredo marked this pull request as ready for review October 29, 2024 03:03
@ramonfigueiredo ramonfigueiredo marked this pull request as draft October 29, 2024 03:07
- Add a check to ensure the job attribute is not None before accessing its methods.
- Prevents potential NoneType errors when job is not set.
@ramonfigueiredo ramonfigueiredo marked this pull request as ready for review October 29, 2024 03:18
@ramonfigueiredo ramonfigueiredo changed the title [cuegui] Fix test_rightClickItem to handle NoneType job attribute [cuegui] Fix FrameContextMenu and test_rightClickItem to handle NoneType job attribute Oct 29, 2024
@ramonfigueiredo ramonfigueiredo merged commit a92fca4 into AcademySoftwareFoundation:master Oct 29, 2024
12 checks passed
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