Skip to content

Commit

Permalink
Fixing posix <-> windows compatibility issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
domdfcoding committed Oct 25, 2020
1 parent fcbd28d commit a789591
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/test_cli/test_make_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ def test_make_schema(tmp_pathplus):
if os.sep == "/":
assert re.match(r"Wrote schema to .*/repo_helper/repo_helper_schema\.json", result.stdout)
elif os.sep == "\\":
assert re.match(r"Wrote schema to .*\\repo_helper\\/repo_helper_schema\.json", result.stdout)
assert re.match(
r"Wrote schema to .*\\repo_helper\\/repo_helper_schema\.json",
result.stdout.splitlines()[0],
)
else:
raise NotImplementedError(os.sep)
2 changes: 2 additions & 0 deletions tests/test_git_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
# 3rd party
import pytest
from domdf_python_tools.paths import PathPlus
from domdf_python_tools.testing import not_windows
from pytest_git import GitRepo # type: ignore
from pytest_regressions.data_regression import DataRegressionFixture
from pytest_regressions.file_regression import FileRegressionFixture
Expand Down Expand Up @@ -60,6 +61,7 @@ def test_log_from_tag(tmp_repo, file_regression: FileRegressionFixture):
Log(tmp_repo).log(from_tag="v5.0.0")


@not_windows(reason="Patchy on Windows")
def test_check_git_status(git_repo: GitRepo):
repo_path = PathPlus(git_repo.workspace)
clean, files = check_git_status(repo_path)
Expand Down

0 comments on commit a789591

Please sign in to comment.