[DEV] Get windows testing in better state (#1214)
This commit is contained in:
parent
a1681bf71a
commit
0c0f05e4d0
2 changed files with 6 additions and 4 deletions
6
Makefile
6
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 \
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue