Skip to content

Commit 961503d

Browse files
committed
enable_determinsm for all tests
1 parent e5f0efd commit 961503d

File tree

2 files changed

+4
-11
lines changed

2 files changed

+4
-11
lines changed

tests/conftest.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,12 @@
77
from loguru import logger
88
from pytest import FixtureRequest, fixture
99

10+
from bioimageio.core import enable_determinism
1011
from bioimageio.spec import __version__ as bioimageio_spec_version
1112

13+
enable_determinism()
14+
15+
1216
try:
1317
import torch
1418

tests/test_resource_tests.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,6 @@
1-
from typing import Literal
2-
3-
import pytest
4-
51
from 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-
154
def test_error_for_wrong_shape(stardist_wrong_shape: str):
165
from bioimageio.core._resource_tests import test_model
176

0 commit comments

Comments
 (0)