Skip to content
This repository has been archived by the owner on Oct 7, 2024. It is now read-only.

Commit

Permalink
feat(#49): tests dir
Browse files Browse the repository at this point in the history
  • Loading branch information
h1alexbel committed Jun 28, 2024
1 parent 5e0f861 commit cf67ba3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/test_english.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions tests/test_md_to_text.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit cf67ba3

Please sign in to comment.