summaryrefslogtreecommitdiffstats
path: root/tests/test_scrub.py
blob: 5929b6549f31ec4021d825dd8f4eab28cab0f7c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import pytest

from fatcat_scholar.schema import *


def test_scrub():
    vectors = [
        (
            "“Please clean this piece… of text</b>„",
            '"Please clean this piece... of text"',
        ),
        ("<jats:p>blah", "blah"),
    ]

    for raw, fixed in vectors:
        assert fixed == scrub_text(raw)