Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ repos:
exclude_types: [javascript,json]

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.16.0
rev: v0.16.1
hooks:
- id: ruff-check
args: [--fix]
Expand Down
2 changes: 1 addition & 1 deletion test/test_git.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def test_error_on_unknown_option(git2cpp_path):
p = subprocess.run(cmd, capture_output=True)
assert p.returncode == 109
assert p.stdout == b""
assert p.stderr.startswith(b"The following argument was not expected: --unknown")
assert b"The following argument was not expected: --unknown" in p.stderr


@pytest.mark.skipif(not GIT2CPP_TEST_WASM, reason="Only test in WebAssembly")
Expand Down
4 changes: 2 additions & 2 deletions test/test_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,15 +97,15 @@ def test_error_on_unknown_option(git2cpp_path):
p = subprocess.run(cmd, capture_output=True)
assert p.returncode == 109
assert p.stdout == b""
assert p.stderr.startswith(b"The following argument was not expected: --unknown")
assert b"The following argument was not expected: --unknown" in p.stderr


def test_error_on_repeated_directory(git2cpp_path):
cmd = [git2cpp_path, "init", "abc", "def"]
p = subprocess.run(cmd, capture_output=True)
assert p.returncode == 109
assert p.stdout == b""
assert p.stderr.startswith(b"The following argument was not expected: def")
assert b"The following argument was not expected: def" in p.stderr


def test_init_creates_missing_parent_directories(git2cpp_path, tmp_path):
Expand Down