Skip to content

Conversation

@webbnh
Copy link
Collaborator

@webbnh webbnh commented Dec 4, 2025

The purpose of this PR is to provide proper unit test coverage for _get_existing_jira_issue() (which would have been handy for #398...). However, that function contains flows which are too complex to test in a straightforward way, so this PR includes a refactorization of the function, splitting substantial sections into two other functions. The resulting functions are tested by exercising a series of scenarios for each one.

While I am at it, I also add a unit test for the UrlCache class.

@webbnh webbnh force-pushed the refactor-get-issue branch from 3bb9668 to 6f77cd1 Compare January 8, 2026 16:13
Copy link
Member

@ralphbean ralphbean left a comment

Choose a reason for hiding this comment

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

LGTM

@ralphbean ralphbean merged commit bab62f3 into main Jan 8, 2026
6 checks passed
@ralphbean ralphbean deleted the refactor-get-issue branch January 8, 2026 18:05
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