Skip to content

Commit 7b4337c

Browse files
committed
update tests
1 parent aca9186 commit 7b4337c

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

bioimageio/core/_settings.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
from typing import Literal
22

3-
from dotenv import load_dotenv
43
from pydantic import Field
54
from typing_extensions import Annotated
65

76
from bioimageio.spec._internal._settings import Settings as SpecSettings
87

9-
_ = load_dotenv()
10-
118

129
class Settings(SpecSettings):
1310
"""environment variables for bioimageio.spec and bioimageio.core"""

setup.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@
5050
),
5151
"tensorflow": ["tensorflow", "keras>=2.15,<4"],
5252
"onnx": ["onnxruntime"],
53-
"tests": (test_deps := ["pytest", "pytest-cov"]), # minimal test requirements
53+
"tests": ( # minimal test requirements
54+
test_deps := ["pytest", "pytest-cov", "python-dotenv"]
55+
),
5456
"dev": (
5557
test_deps
5658
+ pytorch_deps

tests/conftest.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,15 @@
44
from itertools import chain
55
from typing import Dict, List
66

7+
from dotenv import load_dotenv
78
from loguru import logger
89
from pytest import FixtureRequest, fixture
910

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

1314
enable_determinism()
15+
_ = load_dotenv()
1416

1517

1618
try:

0 commit comments

Comments
 (0)