Skip to content

Commit

Permalink
chore: ignore local files
Browse files Browse the repository at this point in the history
  • Loading branch information
nazarfil committed Jul 17, 2024
1 parent cda62b1 commit 397ffd1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ venv
k8s/*
!k8s/sample_app.yaml

#for mac and idea
*.DS_Store
.idea/
# TODO: remove
credentials
.terraform*
Expand Down
8 changes: 4 additions & 4 deletions hexa/datasets/tests/test_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

from hexa.core.test import TestCase
from hexa.datasets.models import DatasetFileMetadata
from hexa.datasets.queue import generate_dataset_file_metadata_task
from hexa.datasets.queue import generate_dataset_file_sample_task
from hexa.files.api import get_storage


Expand Down Expand Up @@ -64,7 +64,7 @@ def test_create_dataset_file_metadata_task_success(
job = mock.Mock()
job.args = {"file_id": dataset_version_file.id}

generate_dataset_file_metadata_task(mock.Mock(), job)
generate_dataset_file_sample_task(mock.Mock(), job)

mock_generate_download_url.assert_called_once_with(dataset_version_file)
mock_DatasetVersionFile_get.assert_called_once_with(
Expand Down Expand Up @@ -114,7 +114,7 @@ def test_create_dataset_file_metadata_task_failure(

job = mock.Mock()
job.args = {"file_id": dataset_version_file.id}
generate_dataset_file_metadata_task(mock.Mock(), job)
generate_dataset_file_sample_task(mock.Mock(), job)

mock_DatasetVersionFile_get.assert_called_with(
id=dataset_version_file.id
Expand Down Expand Up @@ -152,7 +152,7 @@ def test_create_dataset_file_metadata_task_failure_empty_file(
job = mock.Mock()
job.args = {"file_id": dataset_version_file.id}

generate_dataset_file_metadata_task(mock.Mock(), job)
generate_dataset_file_sample_task(mock.Mock(), job)

mock_generate_download_url.assert_called_once_with(dataset_version_file)
mock_DatasetVersionFile_get.assert_called_once_with(id=dataset_version_file.id)
Expand Down

0 comments on commit 397ffd1

Please sign in to comment.