Skip to content

Commit

Permalink
fix: bug
Browse files Browse the repository at this point in the history
  • Loading branch information
inmoonlight committed Sep 8, 2020
1 parent 40c5005 commit 609d798
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/test_dataset.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import pytest # noqa: E902
from dataset import WMT14Dataset
from src.dataset import WMT14Dataset


@pytest.mark.parametrize("langpair", ["en-de"])
Expand Down
6 changes: 4 additions & 2 deletions tests/test_utils.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
import pytest # noqa: F401
from pathlib import Path

from src.utils import read_lines

test_filepath = "data/example.de"
test_filepath = Path(__file__, "data/example.de").parent.absolute()


@pytest.mark.parametrize("filepath", test_filepath)
@pytest.mark.parametrize("filepath", [test_filepath])
def test_read_lines(filepath):
de = read_lines(filepath)
assert isinstance(de, list)
Expand Down

0 comments on commit 609d798

Please sign in to comment.