aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_text_parser.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_text_parser.py')
-rw-r--r--tests/test_text_parser.py23
1 files changed, 1 insertions, 22 deletions
diff --git a/tests/test_text_parser.py b/tests/test_text_parser.py
index 3c61657..42a98d3 100644
--- a/tests/test_text_parser.py
+++ b/tests/test_text_parser.py
@@ -1,25 +1,4 @@
-from collections import namedtuple
-
-from epy import CharPos, TextMark, TextSpan, resolve_path, HTMLtoLines
-
-
-def test_resolve_path():
- UnresolvedPath = namedtuple("UnresolvedPath", ["current_dir", "relative_path"])
-
- inputs = [
- UnresolvedPath("/aaa/bbb/book.html", "../ccc.png"),
- UnresolvedPath("/aaa/bbb/book.html", "../../ccc.png"),
- UnresolvedPath("aaa/bbb/book.html", "../../ccc.png"),
- ]
-
- expecteds = [
- "/aaa/ccc.png",
- "/ccc.png",
- "ccc.png",
- ]
-
- for input, expected in zip(inputs, expecteds):
- assert resolve_path(input.current_dir, input.relative_path) == expected
+from epy import CharPos, TextMark, TextSpan, HTMLtoLines
def test_mark_to_span():