try with just 3.11 & 3.12

This commit is contained in:
Nicholas Albion
2023-10-04 11:01:34 +11:00
parent 83cf4cb511
commit 8c1cd11334
2 changed files with 3 additions and 3 deletions

View File

@@ -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

View File

@@ -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)