Skip to content

Commit 700f119

Browse files
committed
fix: bug
1 parent 40c5005 commit 700f119

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

tests/test_dataset.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import pytest # noqa: E902
2-
from dataset import WMT14Dataset
2+
from src.dataset import WMT14Dataset
33

44

55
@pytest.mark.parametrize("langpair", ["en-de"])

tests/test_utils.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
import pytest # noqa: F401
2+
from pathlib import Path
3+
24
from src.utils import read_lines
35

4-
test_filepath = "data/example.de"
6+
test_filepath = Path(__file__).parent / "data/example.de"
57

68

7-
@pytest.mark.parametrize("filepath", test_filepath)
9+
@pytest.mark.parametrize("filepath", [test_filepath])
810
def test_read_lines(filepath):
911
de = read_lines(filepath)
1012
assert isinstance(de, list)

0 commit comments

Comments
 (0)