From 8c96d171cd274c13ccaa39ea810ce606394a0fbc Mon Sep 17 00:00:00 2001 From: rlskoeser Date: Wed, 23 Oct 2024 17:00:31 -0400 Subject: [PATCH] Confirm note mark is used from xml when present --- ppa/archive/tests/test_eebo_tcp.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ppa/archive/tests/test_eebo_tcp.py b/ppa/archive/tests/test_eebo_tcp.py index 99377cf6..01ca8fe0 100644 --- a/ppa/archive/tests/test_eebo_tcp.py +++ b/ppa/archive/tests/test_eebo_tcp.py @@ -44,7 +44,7 @@ def test_eebo_tcp_page_contents(): PAGE_WITH_NOTE = """ Whom Monarchs like domestick Slaves obey'd, On the bleak Shoar now lies th' abandon'd King, -This whole line is taken from Sir John Derhan. A headless Carcass, and a nameless thing. +This whole line is taken from Sir John Derhan. A headless Carcass, and a nameless thing. """ PAGE_WITH_MULTIPLE_NOTES = """

many Colonies. But now the several Languages that are used in the @@ -108,10 +108,10 @@ def test_eebo_tcp_page_contents_notes(): page_contents = str(text.pages[0]) # should not display note contents inline assert "taken from Sir John Derhan. A headless Carcass," not in page_contents - # should display a note marker inline - assert "* A headless Carcass" in page_contents + # should display a note marker inline using note marker from the xml + assert "✓ A headless Carcass" in page_contents # should display note contents with marker at end of content - assert page_contents.endswith("* This whole line is taken from Sir John Derhan.") + assert page_contents.endswith("✓ This whole line is taken from Sir John Derhan.") text = load_xmlobject_from_string(PAGE_WITH_MULTIPLE_NOTES, eebo_tcp.Text) page_contents = str(text.pages[0])