From fa90fbae0cc329e6dd6a86b8254a09e2b25cf65d Mon Sep 17 00:00:00 2001 From: Eugene Triguba Date: Sun, 5 Nov 2023 14:30:28 -0500 Subject: Fix GitHub Action Workflows and Add Support for Newer Python Versions (#29) * Use ubuntu 20 instead of latest * Add python 3.10, 3.11, and 3.12 * Update action versions and use poetry cache * Install poetry before using cache * Use matrix for different os versions * Fix mypy install failure * Fix pathlib subclassing and strtobool distutils deprecation * Pin poetry in CI to 1.7.0 * Remove 3.11 and 3.12 temporarily * Add 3.11 * Add coverage.xml to gitignore * Only run 3.11 temporarily * Temp test command change * Use cov report * Show files * Use newer pytest versions for newer python versions * Try using 3.12 * Tweak command * Test using coverage directly * Use poetry run * Fix typo * Add back other python versions * Remove test_ci task * Add changelog entry --- tests/test_config_file_path.py | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) (limited to 'tests/test_config_file_path.py') diff --git a/tests/test_config_file_path.py b/tests/test_config_file_path.py index 6b4dd93..41235f8 100644 --- a/tests/test_config_file_path.py +++ b/tests/test_config_file_path.py @@ -1,5 +1,5 @@ import os -from pathlib import Path, _posix_flavour, _windows_flavour +from pathlib import Path import pytest @@ -20,20 +20,6 @@ def test_config_file_path_is_a_path(): assert isinstance(ConfigFilePath("."), Path) -def test_config_file_path_has_the_correct_flavour(): - """ - config_file.config_file_path.ConfigFilePath - - Ensure that the ConfigFilePath object has the - correct Path flavor (since Path is actually - swapped out, depending on the operating system, - to a Posix flavour or Windows flavour) - """ - path = ConfigFilePath(".") - - assert path._flavour == _windows_flavour if os.name == "nt" else _posix_flavour - - def test_config_file_path_is_able_to_read_the_contents(template_file): """ config_file.config_file_path.ConfigFilePath -- cgit v1.2.3