aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorEugene Triguba <eugenetriguba@gmail.com>2023-11-05 14:30:28 -0500
committerGitHub <noreply@github.com>2023-11-05 14:30:28 -0500
commitfa90fbae0cc329e6dd6a86b8254a09e2b25cf65d (patch)
tree8e02bc97ec5b7fad3a9966bea4c73434fcdbbd05 /tests
parentAdd todos for nested_lookup (diff)
downloadconfig-file-fa90fbae0cc329e6dd6a86b8254a09e2b25cf65d.zip
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
Diffstat (limited to 'tests')
-rw-r--r--tests/test_config_file_path.py16
1 files changed, 1 insertions, 15 deletions
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