From 0c0f05e4d0b1762a625747b0ff73fade68b677d3 Mon Sep 17 00:00:00 2001 From: Jesse Bannon Date: Sat, 3 May 2025 19:40:28 -0700 Subject: [PATCH] [DEV] Get windows testing in better state (#1214) --- Makefile | 6 +++--- tests/unit/validators/test_file_path_validators.py | 4 +++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 39d8939d..6bdc1e1a 100644 --- a/Makefile +++ b/Makefile @@ -14,9 +14,9 @@ else endif lint: - @-isort . - @-black . - @-pylint src/ + python3 -m isort . && \ + python3 -m black . && \ + python3 -m pylint src check_lint: isort . --check-only --diff \ && black . --check \ diff --git a/tests/unit/validators/test_file_path_validators.py b/tests/unit/validators/test_file_path_validators.py index 467f7b80..e66a11c2 100644 --- a/tests/unit/validators/test_file_path_validators.py +++ b/tests/unit/validators/test_file_path_validators.py @@ -1,3 +1,4 @@ +import os import tempfile from pathlib import Path @@ -34,7 +35,8 @@ class TestStringFormatterFilePathValidator: Script({"file_name": formatter.format_string}).resolve().get_str("file_name") ) - assert truncated_file_path.count(".") == ext.count(".") + _, truncated_file_name = os.path.split(truncated_file_path) + assert truncated_file_name.count(".") == ext.count(".") assert str(Path(temp_dir)) in truncated_file_path assert ext in truncated_file_path