diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c9d1fc0..849e2b3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,7 +16,7 @@ jobs: matrix: # 3.10 - 04 Oct 2021 # 3.11 - 24 Oct 2022 - python-version: ['3.9', '3.10', '3.11'] + python-version: ['3.11', '3.12'] steps: - uses: actions/checkout@v4 diff --git a/pilot/helpers/test_Project.py b/pilot/helpers/test_Project.py index ffee487..8d1de3d 100644 --- a/pilot/helpers/test_Project.py +++ b/pilot/helpers/test_Project.py @@ -1,5 +1,5 @@ import pytest -from unittest.mock import Mock, patch +from unittest.mock import patch from helpers.Project import Project @@ -65,7 +65,7 @@ def test_save_file(mock_file_insert, mock_update_file, test_data): ('path/', 'file.txt', '/temp/gpt-pilot-test/path/file.txt'), ('path/to/', 'file.txt', '/temp/gpt-pilot-test/path/to/file.txt'), ('path/to/file.txt', 'file.txt', '/temp/gpt-pilot-test/path/to/file.txt'), - ('./path/to/file.txt', 'file.txt', '/temp/gpt-pilot-test/path/to/file.txt'), + ('./path/to/file.txt', 'file.txt', '/temp/gpt-pilot-test/./path/to/file.txt'), # ideally result would not have `./` ]) def test_get_full_path(file_path, file_name, expected): relative_path, absolute_path = project.get_full_file_path(file_path, file_name)