File tree Expand file tree Collapse file tree 2 files changed +4
-11
lines changed Expand file tree Collapse file tree 2 files changed +4
-11
lines changed Original file line number Diff line number Diff line change 77from loguru import logger
88from pytest import FixtureRequest , fixture
99
10+ from bioimageio .core import enable_determinism
1011from bioimageio .spec import __version__ as bioimageio_spec_version
1112
13+ enable_determinism ()
14+
15+
1216try :
1317 import torch
1418
Original file line number Diff line number Diff line change 1- from typing import Literal
2-
3- import pytest
4-
51from bioimageio .spec import InvalidDescr , ValidationContext
62
73
8- @pytest .mark .parametrize ("mode" , ["seed_only" , "full" ])
9- def test_enable_determinism (mode : Literal ["seed_only" , "full" ]):
10- from bioimageio .core import enable_determinism
11-
12- enable_determinism (mode )
13-
14-
154def test_error_for_wrong_shape (stardist_wrong_shape : str ):
165 from bioimageio .core ._resource_tests import test_model
176
You can’t perform that action at this time.
0 commit comments