From cf67ba33510948c019ecab737fe9accc1e5420d3 Mon Sep 17 00:00:00 2001 From: h1alexbel Date: Fri, 28 Jun 2024 11:39:59 +0300 Subject: [PATCH] feat(#49): tests dir --- tests/test_english.py | 2 +- tests/test_md_to_text.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_english.py b/tests/test_english.py index 3b117b1..72669bd 100644 --- a/tests/test_english.py +++ b/tests/test_english.py @@ -67,7 +67,7 @@ def test_returns_false_on_mixed(self): def test_returns_false_on_prepared_chinese(self): DetectorFactory.seed = 0 - with open("cn-prepared.txt") as f: content = f.read() + with open("tests/cn-prepared.txt") as f: content = f.read() self.assertFalse( english(content), f"input text {content} is english, but should not be" diff --git a/tests/test_md_to_text.py b/tests/test_md_to_text.py index e8fceaf..b5c8b1c 100644 --- a/tests/test_md_to_text.py +++ b/tests/test_md_to_text.py @@ -56,11 +56,11 @@ def test_translates_markdown_to_text(self): ) def test_transforms_chinese(self): - with open("cn.md") as f: content = f.read() + with open("tests/cn.md") as f: content = f.read() transformed = to_text( content ) - with open("cn-transformed.txt") as f: expected = f.read() + with open("tests/cn-transformed.txt") as f: expected = f.read() self.assertEqual( expected, transformed,