Commit f83cbba
committed
Add common tests for input generators of common relax workflow
The newly added test will automatically parametrize over all the
implementations of the common relax workflow that register an entry
point. The test checks that the signature of the `get_builder` method,
as built dynamically through the input generator specification in the
`define` method, respects the criteria of the common interface.
This means that all the required ports are present and that their valid
types are what they should be. This should hopefully catch if
implementations change the specification accidentally in a way that is
not intended.
In the future, ideally we can extend these tests with tests that
actually try to call `get_builder`, such that we can also verify that it
successfully returns a builder when using any of the values that are
defined as supported for the various arguments, such as for the
`spin_type`, `relax_type` and `electronic_type`.
However, this is technically not easy as calling `get_builder` may
depend on certain pre-conditions being fulfilled depending on the
implementation. For example, the Quantum ESPRESSO would require a
version of the `SsspFamily` to be installed. We would need to find a way
to automatically load these fixtures based on the implementation that is
being tested.1 parent 03556c6 commit f83cbba
1 file changed
+62
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
0 commit comments