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

Improve and fix issues with the plugin loader tests #1025

Merged
merged 4 commits into from
Dec 22, 2017

Conversation

sphuber
Copy link
Contributor

@sphuber sphuber commented Dec 22, 2017

Fixes #1023

This addresses the main problem that was outlined in the original issue but I also addressed some other problems:

  • Added the WorkChain class as acceptable subclass for plugins in aiida.workflows entry point
  • Added assertion error messages to all tests
  • Implemented a TcodExporterFactory and added the same plugin loading tests for aiida.tools.dbexporters.tcod_plugins as for the other entry points
  • Updated the aiida.parsers entry point mapping to remove the superfluous .plugins suffix and updated the ParserFactory accordingly
  • Added plugin loading tests for the aiida.parsers entry point

The WorkflowFactory can be used to load both legacy Workflow
classes as well as new style WorkChain workflows. The plugin
loader tests were only allowing for legacy Workflow classes
to be registered even though the loader works just fine.
Therefore we add the WorkChain as an acceptable subclass for
classes registered under the aiida.workflows entry point
The plugin loader tests will now try to construct the plugins
for the Tcod exporter through the TcodExporterFactory and test
whether they are a subclass of the BaseTcodtranslator class
With the new ParserFactory I have also added a tests to
the plugin loader for all registered plugins for the
aiida.parsers entry point
@sphuber sphuber merged commit 76af975 into aiidateam:develop Dec 22, 2017
@sphuber sphuber deleted the fix_1023_broken_pluginloader_test branch December 22, 2017 14:51
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.

Plugin loader testing breaks for the workflows entry point
2 participants