Skip to content

Commit fabdac7

Browse files
committed
Ensure the test yaml snippets are valid.
1 parent f69175e commit fabdac7

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

test/rmgpy/rmgUtilTest.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,18 +27,23 @@
2727
# #
2828
###############################################################################
2929

30+
import yaml
31+
3032
from rmgpy.util import strip_yaml_notes
3133

3234

3335
class UtilTest:
3436
def strip_yaml_notes(self, tmp_path, source_text):
3537
source_path = tmp_path / "chem_annotated.yaml"
3638
destination_path = tmp_path / "chem.yaml"
39+
yaml.safe_load(source_text)
3740
source_path.write_text(source_text)
3841

3942
strip_yaml_notes(source_path, destination_path)
4043

41-
return destination_path.read_text()
44+
result = destination_path.read_text()
45+
yaml.safe_load(result)
46+
return result
4247

4348
def test_strip_yaml_notes_removes_block_style_note(self, tmp_path):
4449
source = """species:

0 commit comments

Comments
 (0)