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

470 bug missing query handler in unit tests #471

Merged
merged 6 commits into from
Nov 29, 2024

Conversation

layaxx
Copy link
Member

@layaxx layaxx commented Nov 28, 2024

re #470

Fixes warnings in the test cases of the libretranslate provider, due to the async information fetching during initiation and a missing mock query handler.

Also includes some additional test coverage for the main plugin.

@layaxx layaxx linked an issue Nov 28, 2024 that may be closed by this pull request
@layaxx
Copy link
Member Author

layaxx commented Nov 28, 2024

Would love to increase overall unit-test coverage, but I think that is out of scope for this. Would probably require (or at least be made easier by) refactoring of the BatchtranslateJob#start method

@layaxx layaxx requested a review from sargreal November 28, 2024 17:15
@sargreal sargreal force-pushed the 470-bug-missing-query-handler-in-unit-tests branch from f5094c1 to 199cac0 Compare November 28, 2024 20:15
Copy link
Member

@sargreal sargreal left a comment

Choose a reason for hiding this comment

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

LGTM

I tried to fix the codecov pipeline where the results are not uploaded, but I think that needs to be done some other time

@layaxx layaxx merged commit 8e5f787 into main Nov 29, 2024
13 checks passed
@fekide-bot
Copy link

🎉 This PR is included in version 1.2.7 🎉

The release is available on npm package (@latest dist-tag)

Your semantic-release bot 📦🚀

@fekide-bot
Copy link

🎉 This PR is included in version 1.1.15 🎉

The release is available on npm package (@latest dist-tag)

Your semantic-release bot 📦🚀

@fekide-bot
Copy link

🎉 This PR is included in version 1.0.14 🎉

The release is available on npm package (@latest dist-tag)

Your semantic-release bot 📦🚀

@fekide-bot
Copy link

🎉 This PR is included in version 1.3.0-next.2 🎉

The release is available on npm package (@next dist-tag)

Your semantic-release bot 📦🚀

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.

[BUG]: Missing query handler in unit tests
3 participants