Skip to content

Commit

Permalink
Change model_base_dir to point to existing folder in repo
Browse files Browse the repository at this point in the history
  • Loading branch information
greenw0lf committed Oct 8, 2024
1 parent b0c753a commit 87d569e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 21 deletions.
16 changes: 1 addition & 15 deletions poetry.lock

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

1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ 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: 0 additions & 3 deletions tests/.env

This file was deleted.

5 changes: 3 additions & 2 deletions tests/test_model_download.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import pytest
import shutil
import os
from dotenv import load_dotenv

# Mocking environment used in model_download (by loading tests/.env)
load_dotenv()
os.environ["DATA_BASE_DIR"] = "data"
os.environ["MODEL_BASE_DIR"] = "tests/input/extract_model_test"
os.environ["S3_ENDPOINT_URL"] = "http://url.com"

from model_download import extract_model, get_model_location # noqa

Expand Down

0 comments on commit 87d569e

Please sign in to comment.