We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d14ac42 commit bc724ecCopy full SHA for bc724ec
tests/test_read_simple_bitext.py
@@ -21,13 +21,15 @@
21
22
# The source/target file paths will be concatenated as document ID in `ParallelDataset`, so we can't directly pass a `Path` object.
23
@pytest.fixture
24
-def src_file():
25
- return Path("tests/bitext_data/toy.de").absolute().as_posix()
+def src_file(pytestconfig):
+ root_dir = Path(pytestconfig.rootdir)
26
+ return (root_dir / "tests" / "bitext_data" / "toy.de").absolute().as_posix()
27
28
29
-def tgt_file():
30
- return Path("tests/bitext_data/toy.en").absolute().as_posix()
+def tgt_file(pytestconfig):
31
32
+ return (root_dir / "tests" / "bitext_data" / "toy.en").absolute().as_posix()
33
34
35
class TestReadSimpleBitext:
0 commit comments