Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

URA-872 - move unit tests #22

Merged
merged 4 commits into from
Oct 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tests/__init__.py → tests/unit/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import os

sys.path.append(
os.path.abspath(os.path.join(os.path.realpath(__file__), "../../"))
os.path.abspath(os.path.join(os.path.realpath(__file__), "../../../"))
)

TEST_DATA_DIR = os.path.join(os.path.dirname(__file__), "test_data")
TEST_DATA_DIR = os.path.join(os.path.dirname(__file__), "../test_data")
2 changes: 1 addition & 1 deletion tests/test_io.py → tests/unit/test_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import unittest
from unittest.mock import patch

from tests import TEST_DATA_DIR
from unit import TEST_DATA_DIR
from s3_upload.utils import io


Expand Down
2 changes: 1 addition & 1 deletion tests/test_log.py → tests/unit/test_log.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import pytest

from tests import TEST_DATA_DIR
from unit import TEST_DATA_DIR
from s3_upload.utils import log


Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion tests/test_upload.py → tests/unit/test_upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@


from s3_upload.utils import upload
from tests import TEST_DATA_DIR
from unit import TEST_DATA_DIR


@patch("s3_upload.utils.upload.boto3.Session.resource")
Expand Down
2 changes: 1 addition & 1 deletion tests/test_utils.py → tests/unit/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import pytest

from tests import TEST_DATA_DIR
from unit import TEST_DATA_DIR
from s3_upload.utils import io, utils


Expand Down
Loading