We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f69175e commit fabdac7Copy full SHA for fabdac7
1 file changed
test/rmgpy/rmgUtilTest.py
@@ -27,18 +27,23 @@
27
# #
28
###############################################################################
29
30
+import yaml
31
+
32
from rmgpy.util import strip_yaml_notes
33
34
35
class UtilTest:
36
def strip_yaml_notes(self, tmp_path, source_text):
37
source_path = tmp_path / "chem_annotated.yaml"
38
destination_path = tmp_path / "chem.yaml"
39
+ yaml.safe_load(source_text)
40
source_path.write_text(source_text)
41
42
strip_yaml_notes(source_path, destination_path)
43
- return destination_path.read_text()
44
+ result = destination_path.read_text()
45
+ yaml.safe_load(result)
46
+ return result
47
48
def test_strip_yaml_notes_removes_block_style_note(self, tmp_path):
49
source = """species:
0 commit comments