Skip to content

Commit

Permalink
Hopefully pipeline passes
Browse files Browse the repository at this point in the history
  • Loading branch information
greenw0lf committed Oct 8, 2024
1 parent 4fcf121 commit b0c753a
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 9 deletions.
16 changes: 15 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ boto3 = "^1.35.10"
fastapi = "^0.115.0"
uvicorn = "^0.30.6"
tomli = "^2.0.1"
python-dotenv = "^1.0.1"

[tool.poetry.group.dev.dependencies]
moto = "^5.0.13"
Expand Down
3 changes: 3 additions & 0 deletions tests/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
DATA_BASE_DIR=data
MODEL_BASE_DIR=model
S3_ENDPOINT_URL=https://someurl.org
11 changes: 3 additions & 8 deletions tests/test_model_download.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,14 @@
import pytest
import shutil
import os
import logging
from dotenv import load_dotenv

# Mocking environment used in model_download
os.environ["DATA_BASE_DIR"] = "data"
os.environ["MODEL_BASE_DIR"] = "model"
os.environ["S3_ENDPOINT_URL"] = "https://someurl.org"
# Mocking environment used in model_download (by loading tests/.env)
load_dotenv()

from model_download import extract_model, get_model_location # noqa


logger = logger = logging.getLogger(__name__)


@pytest.mark.parametrize(
"destination, extension, expected_output",
[
Expand Down

0 comments on commit b0c753a

Please sign in to comment.