|
5 | 5 |
|
6 | 6 | from fundamend import AhbReader |
7 | 7 | from fundamend.models.anwendungshandbuch import Anwendungsfall, Kommunikationsrichtung |
8 | | -from fundamend.utils import parse_kommunikation_von, remove_linebreaks_and_hyphens |
| 8 | +from fundamend.utils import parse_kommunikation_von |
9 | 9 |
|
10 | 10 | from .conftest import is_private_submodule_checked_out |
11 | 11 |
|
12 | 12 |
|
13 | | -@pytest.mark.parametrize( |
14 | | - "original, expected", |
15 | | - [ |
16 | | - pytest.param("foo", "foo", id="no change"), |
17 | | - pytest.param("foo ", "foo", id="trailing whitespace"), |
18 | | - pytest.param(" foo", "foo", id="leading whitespace"), |
19 | | - pytest.param(" foo ", "foo", id="trailing and leading whitespaces"), |
20 | | - pytest.param(" foo\r\n ", "foo", id="trailing and leading whitespaces and line break"), |
21 | | - # hyphen requirements discussed here: |
22 | | - # https://github.com/Hochfrequenz/xml-fundamend-python/issues/172#issue-3427724092 |
23 | | - pytest.param(" Foo-\r\nbar ", "Foobar", id="hyphen with line break"), |
24 | | - pytest.param(" Foo\r\n and bar ", "Foo and bar", id="line break w/o hyphen"), |
25 | | - ], |
26 | | -) |
27 | | -def test_anwendungsfall_beschreibung_normalization(original: str, expected: str) -> None: |
28 | | - actual = remove_linebreaks_and_hyphens(original) |
29 | | - assert actual == expected |
30 | | - |
31 | | - |
32 | 13 | @pytest.mark.parametrize( |
33 | 14 | "original, expected", |
34 | 15 | [ |
|
0 commit comments