Skip to content

Commit

Permalink
add assert path.exists() for readable error
Browse files Browse the repository at this point in the history
  • Loading branch information
cospectrum committed Dec 14, 2024
1 parent f942c14 commit 74d6c13
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
import pytest
from pathlib import Path
from microwink import SegModel


@pytest.fixture
def seg_model() -> SegModel:
return SegModel.from_path("./models/seg_model.onnx")
path = Path("./models/seg_model.onnx")
assert path.exists()
return SegModel.from_path(path)

0 comments on commit 74d6c13

Please sign in to comment.