-
Notifications
You must be signed in to change notification settings - Fork 86
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
Adds unit test for improver.api #2032
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #2032 +/- ##
==========================================
- Coverage 98.39% 98.34% -0.05%
==========================================
Files 124 132 +8
Lines 12212 12820 +608
==========================================
+ Hits 12016 12608 +592
- Misses 196 212 +16 ☔ View full report in Codecov by Sentry. |
Fantastic. Thanks for filling this hole in the testing ❤️ |
FYI, I have been considering adding CLI name alias support to the |
This risks perpetuating names that we'd rather retire. On the other hand, in the future, we may want to change the name of a plugin without significantly changing the capability, so mapping would allow backward compatibility. That's a bit inconclusive... |
I do agree. The other option is that we go with the CLI names for lookup only (detaching the plugin name from the API). |
While reviewing @cpelley's changes for DAG-runner, I found that this API lookup didn't have a unit test to prove that all the targets actually point to a usable object. This could result in unexpected behaviour. I've added a simple test that passes if each item points to an object that is callable.
Testing: