FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[pre-commit.ci] pre-commit autoupdate by pre-commit-ci[bot] · Pull Request #179 · QuantStack/git2cpp · GitHub

Repository navigation

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

Filter by extension

Filter by extension .py  (2) .yaml  (1) All 2 file types selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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

Back | FazBrowse Home | New Git URL