mirror of
https://github.com/Pythagora-io/gpt-pilot.git
synced 2026-01-10 05:27:54 -05:00
try with just 3.11 & 3.12
This commit is contained in:
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user