Commit dfa64ca
Add test coverage for missing general_calculations in MolecularData.load (#1251)
This change removes the `pragma: nocover` and the associated TODO in
`src/openfermion/chem/molecular_data.py` by adding a test case in
`src/openfermion/chem/molecular_data_test.py` that triggers the branch
where `general_calculations_keys` or `general_calculations_values` are
missing from the HDF5 file.
---------
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>1 parent 4a8eaed commit dfa64ca
File tree
2 files changed
+23
-4
lines changed- src/openfermion/chem
2 files changed
+23
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
909 | 909 | | |
910 | 910 | | |
911 | 911 | | |
| 912 | + | |
| 913 | + | |
912 | 914 | | |
913 | | - | |
914 | | - | |
915 | | - | |
916 | | - | |
| 915 | + | |
917 | 916 | | |
918 | 917 | | |
919 | 918 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
| 17 | + | |
16 | 18 | | |
17 | 19 | | |
18 | 20 | | |
| |||
347 | 349 | | |
348 | 350 | | |
349 | 351 | | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
0 commit comments