diff --git a/tests/test_core/test_core_indexdata.py b/tests/test_core/test_core_indexdata.py index faef5d51..cb749be7 100644 --- a/tests/test_core/test_core_indexdata.py +++ b/tests/test_core/test_core_indexdata.py @@ -251,13 +251,17 @@ def testCoreIndexData_IndexHeading(): "note.consitency": "Only explode once", } + # Append Synopsis + head.setComment(nwComment.SYNOPSIS.name, "", "How it started ...") + assert head.synopsis == "In the beginning ...\n\nHow it started ..." + # Unpack KeyError with pytest.raises(KeyError, match="Unknown key in heading entry"): head.unpackData({"stuff": "more stuff"}) # Unpack Comments head.unpackData({"summary": "How it started ..."}) - assert head.synopsis == "How it started ..." + assert head.synopsis == "How it started ..." # This resets the comments dictionary @pytest.mark.core