We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40c5005 commit 700f119Copy full SHA for 700f119
tests/test_dataset.py
@@ -1,5 +1,5 @@
1
import pytest # noqa: E902
2
-from dataset import WMT14Dataset
+from src.dataset import WMT14Dataset
3
4
5
@pytest.mark.parametrize("langpair", ["en-de"])
tests/test_utils.py
@@ -1,10 +1,12 @@
import pytest # noqa: F401
+from pathlib import Path
+
from src.utils import read_lines
-test_filepath = "data/example.de"
6
+test_filepath = Path(__file__).parent / "data/example.de"
7
8
-@pytest.mark.parametrize("filepath", test_filepath)
9
+@pytest.mark.parametrize("filepath", [test_filepath])
10
def test_read_lines(filepath):
11
de = read_lines(filepath)
12
assert isinstance(de, list)
0 commit comments