diff --git a/.github/workflows/python-unit-test.yaml b/.github/workflows/python-unit-test.yaml index 6c96c786..235a5540 100644 --- a/.github/workflows/python-unit-test.yaml +++ b/.github/workflows/python-unit-test.yaml @@ -21,4 +21,4 @@ jobs: pip install -r requirements.txt - name: Run unit tests run: | - bash run_python_tests.sh + bash run_python_unittests.sh diff --git a/run_python_coverage_test.sh b/run_python_coverage_test.sh new file mode 100644 index 00000000..5601683a --- /dev/null +++ b/run_python_coverage_test.sh @@ -0,0 +1,2 @@ +#!/bin/bash +coverage run -m unittest discover -s use-cases/model-fine-tuning-pipeline/data-processing/ray/tests diff --git a/run_python_tests.sh b/run_python_unittests.sh similarity index 71% rename from run_python_tests.sh rename to run_python_unittests.sh index 828af84d..4b2fc7ff 100644 --- a/run_python_tests.sh +++ b/run_python_unittests.sh @@ -1,2 +1,2 @@ #!/bin/bash -python -m unittest discover -s use-cases/model-fine-tuning-pipeline/data-processing/ray +python -m unittest discover -s use-cases/model-fine-tuning-pipeline/data-processing/ray/tests diff --git a/use-cases/model-fine-tuning-pipeline/data-processing/ray/tests/test_datacleaner.py b/use-cases/model-fine-tuning-pipeline/data-processing/ray/tests/backup_test_datacleaner.py similarity index 100% rename from use-cases/model-fine-tuning-pipeline/data-processing/ray/tests/test_datacleaner.py rename to use-cases/model-fine-tuning-pipeline/data-processing/ray/tests/backup_test_datacleaner.py diff --git a/use-cases/model-fine-tuning-pipeline/data-processing/ray/tests/test_ray_utils.py b/use-cases/model-fine-tuning-pipeline/data-processing/ray/tests/backup_test_ray_utils.py similarity index 98% rename from use-cases/model-fine-tuning-pipeline/data-processing/ray/tests/test_ray_utils.py rename to use-cases/model-fine-tuning-pipeline/data-processing/ray/tests/backup_test_ray_utils.py index a5aba8c2..4ac1111f 100644 --- a/use-cases/model-fine-tuning-pipeline/data-processing/ray/tests/test_ray_utils.py +++ b/use-cases/model-fine-tuning-pipeline/data-processing/ray/tests/backup_test_ray_utils.py @@ -2,7 +2,7 @@ import pandas as pd from unittest.mock import patch, Mock from src.datapreprocessing.ray_utils import RayUtils - +import src.datapreporcessing class TestRayUtils(unittest.TestCase): @patch("ray.get") diff --git a/use-cases/model-fine-tuning-pipeline/data-processing/ray/tests/test_dataloader.py b/use-cases/model-fine-tuning-pipeline/data-processing/ray/tests/test_dataloader.py index a1e42146..06b04ed2 100644 --- a/use-cases/model-fine-tuning-pipeline/data-processing/ray/tests/test_dataloader.py +++ b/use-cases/model-fine-tuning-pipeline/data-processing/ray/tests/test_dataloader.py @@ -5,7 +5,6 @@ import csv from src.datapreprocessing.dataloader import DataLoader - class TestDataLoader(unittest.TestCase): @patch("src.datapreprocessing.dataloader.pd.read_csv") def test_load_raw_data(self, read_csv_mock):