| Conditions | 1 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | import pytest |
||
| 7 | @pytest.mark.test_data |
||
| 8 | def test_get_pivot_energy(gpy_hess_magic): |
||
| 9 | """ |
||
| 10 | Check the pivot energy for given fit model on a dataset. |
||
| 11 | """ |
||
| 12 | analysis = AsgardpyAnalysis(gpy_hess_magic) |
||
| 13 | |||
| 14 | analysis.run(["datasets-3d", "datasets-1d"]) |
||
| 15 | |||
| 16 | e_ref = fetch_pivot_energy(analysis) |
||
| 17 | |||
| 18 | assert e_ref.value == 0.20085434771049843 |
||
| 19 | |||
| 39 |