-
Notifications
You must be signed in to change notification settings - Fork 4
🧪 EpwParser: reintroduce tests from AiiDA-QE
#9
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
Conversation
|
Notes:
|
9be0ff9 to
9f82330
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice and robust tests, I think. I left 2 comments. In general, I would like to approve of this PR.
|
Ah, I just realised you already approved the PR when giving your comments. ^^ I suppose since you marked the second comment as resolved, I can go ahead and merge? Will already rebase. |
7603311 to
801f8f6
Compare
Add the parser tests that were previously in the EPW support branch of `aiida-quantumespresso`. For setting up a `localhost` computer, we rely on the `aiida_localhost` test fixture provided in the `aiida.tools.pytest_fixtures` module, made available via the `pytest_plugins` variable. Originally the idea was to make the `aiida-quantumespresso` fixtures similarly importable, but closer inspection revealed improvements can still be made, and the fixtures were currently not general enough to work for other plugin packages. Instead, we add two fixtures here: - `files_path`: this simply returns the path to the test files directory. For the tests added here, the files correspond to the output files for which we want to test the `EpwParser`. - `parse_from_files`: a simplified version of the fixtures defined in `aiida-quantumespresso`. Parses the output files in the corresponding `test_name` directory. The tests that we had in the EPW support branch have also been adapted to rely on these fixtures.
801f8f6 to
e6d6ce4
Compare
|
There. Also squashed the commits into one final commit that I will then add to |
|
Yes. I just had a look at the changes. think the tests are quite good now. |
Add the parser tests that were previously in the EPW support branch of
aiida-quantumespresso.For setting up a
localhostcomputer, we rely on theaiida_localhosttest fixture provided in theaiida.tools.pytest_fixturesmodule, made available via thepytest_pluginsvariable. Originally the idea was to make theaiida-quantumespressofixtures similarly importable, but closer inspection revealed improvements can still be made, and the fixtures were currently not general enough to work for other plugin packages.Instead, we add two fixtures here:
files_path: this simply returns the path to the test files directory. For the tests added here, the files correspond to the output files for which we want to test theEpwParser.parse_from_files: a simplified version of the fixtures defined inaiida-quantumespresso. Parses the output files in the correspondingtest_namedirectory.The tests that we had in the EPW support branch have also been adapted to rely on these fixtures.