Skip to content

Commit e5e0385

Browse files
author
TAHRI Ahmed R
committed
Path fix on tests
1 parent 9f75c21 commit e5e0385

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

test/test_on_file.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class TestFileCharsetNormalizer(unittest.TestCase):
3232
}
3333

3434
def test_file_input(self):
35-
for path_name in glob('../data/*.srt') + glob('../data/*.txt'):
35+
for path_name in glob('./data/*.srt') + glob('./data/*.txt'):
3636

3737
with self.subTest('test_file_input <{}>'.format(path_name)):
3838

test/test_probe_coherence.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
class TestProbeCoherence(unittest.TestCase):
88
def test_obvious_coherence_gap(self):
99

10-
should_be_most_coherent = CharsetNormalizerMatches.from_path('../data/sample.1.ar.srt').best().first().coherence
10+
should_be_most_coherent = CharsetNormalizerMatches.from_path('./data/sample.1.ar.srt').best().first().coherence
1111

12-
with open('../data/sample.1.ar.srt', 'r', encoding='mac_cyrillic') as fp:
12+
with open('./data/sample.1.ar.srt', 'r', encoding='mac_cyrillic') as fp:
1313
r_ = ProbeCoherence(Counter(fp.read())).ratio
1414

15-
with open('../data/sample.1.ar.srt', 'r', encoding='cp1251') as fp:
15+
with open('./data/sample.1.ar.srt', 'r', encoding='cp1251') as fp:
1616
t_ = ProbeCoherence(Counter(fp.read())).ratio
1717

1818
self.assertLess(

0 commit comments

Comments
 (0)