From 4b6f0c28dcfbd4af49c918415f56c0c1c01af9f3 Mon Sep 17 00:00:00 2001 From: Adrien Barbaresi Date: Wed, 31 Jan 2024 18:26:09 +0100 Subject: [PATCH] fix typo in tests --- tests/unit_tests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/unit_tests.py b/tests/unit_tests.py index b28a9aa5..812b1ce1 100644 --- a/tests/unit_tests.py +++ b/tests/unit_tests.py @@ -461,9 +461,9 @@ def test_links(): assert '[Test link text.](https://www.example.com/testlink.html) This part of the text has to be long enough.' in extract(copy(mydoc), url='https://www.example.com/', include_links=True, no_fallback=True, config=ZERO_CONFIG) # link without target mydoc = html.fromstring('

Test link text. This part of the text has to be long enough.

') - assert '[Test link text.] This part of the text has to be long enough.' in extract(copy, include_links=True, no_fallback=True, config=ZERO_CONFIG) + assert '[Test link text.] This part of the text has to be long enough.' in extract(copy(mydoc), include_links=True, no_fallback=True, config=ZERO_CONFIG) mydoc = html.fromstring('
Segment 1

Segment 2

Segment 3

') - result = extract(mydoc, output_format='xml', include_links=True, no_fallback=True, config=ZERO_CONFIG) + result = extract(copy(mydoc), output_format='xml', include_links=True, no_fallback=True, config=ZERO_CONFIG) assert '1' in result and '2' in result and '3' in result with open(os.path.join(RESOURCES_DIR, 'http_sample.html')) as f: teststring = f.read()