Skip to content

Commit

Permalink
test: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dhdaines committed Nov 22, 2023
1 parent 950515a commit af644f2
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
Binary file added test/data/model.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion test/test_analyse.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from alexi.format import format_xml

DATADIR = Path(__file__).parent / "data"
TRAINDIR = Path(__file__).parent.parent / "data" / "train"
TRAINDIR = Path(__file__).parent.parent / "data"

IOBTEST = [
"<Titre>Titre incomplet</Titre>",
Expand Down
2 changes: 1 addition & 1 deletion test/test_format.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from alexi.format import format_html, format_text

DATADIR = Path(__file__).parent / "data"
TRAINDIR = Path(__file__).parent.parent / "data" / "train"
TRAINDIR = Path(__file__).parent.parent / "data"


def test_format_html():
Expand Down
2 changes: 1 addition & 1 deletion test/test_segment.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def test_segment():
del word["segment"]
writer.writerow(word)
testfh.seek(0, 0)
seg = Segmenteur()
seg = Segmenteur(DATADIR / "model.gz")
reader = csv.DictReader(testfh)
words = list(seg(reader))
assert len(words) > 0
Expand Down

0 comments on commit af644f2

Please sign in to comment.