[DEV] Get windows testing in better state (#1214)

This commit is contained in:
Jesse Bannon 2025-05-03 19:40:28 -07:00 committed by GitHub
parent a1681bf71a
commit 0c0f05e4d0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 4 deletions

View file

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

View file

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