You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm a bit unsure how to best test this, so looking for input. It's important and fragile enough that coverage is desirable.
The problem is that plugins are handled via entry points, which AFAIK strictly require installing. We cannot really monkey-patch them, as we do for other resources.
Currently, I see two possible approaches:
Install some "test plugins" as part of cobald itself. We can probably name-mangle them so no-one accidentally uses them, but they would still be there.
Alternatively, have a dedicated test package containing the plugins.
Modify the plugin loading to separate reading and processing. This is the most unittest'ish approach, but complicates plugin loading.
The current implementation of
PluginRequirements
does not come with any unit tests yet. Those should be added.The text was updated successfully, but these errors were encountered: