Skip to content

Commit

Permalink
fix: Change var names
Browse files Browse the repository at this point in the history
  • Loading branch information
anth-volk committed Dec 7, 2024
1 parent 17995fb commit 85083e2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 3 additions & 1 deletion policyengine_core/simulations/simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,9 @@ def __init__(
else:
version = None
dataset = download_huggingface_dataset(
owner + "/" + repo, filename, version
repo=f"{owner}/{repo}",
repo_filename=filename,
version=version,
)
datasets_by_name = {
dataset.name: dataset for dataset in self.datasets
Expand Down
3 changes: 1 addition & 2 deletions tests/core/tools/test_hugging_face.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
)


class TestHfDownload:
class TestHuggingFaceDownload:
def test_download_public_repo(self):
"""Test downloading from a public repo"""
test_repo = "test_repo"
Expand Down Expand Up @@ -91,7 +91,6 @@ def test_download_private_repo_no_token(self):
download_huggingface_dataset(test_repo, test_filename, test_version)
mock_download.assert_not_called()


class TestGetOrPromptHfToken:
def test_get_token_from_environment(self):
"""Test retrieving token when it exists in environment variables"""
Expand Down

0 comments on commit 85083e2

Please sign in to comment.