| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent be90519 commit a5200fe
3 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -24,7 +24,7 @@ repos: | |||
| 24 | 24 | exclude_types: [javascript,json] | |
| 25 | 25 | ||
| 26 | 26 | - repo: https://github.com/astral-sh/ruff-pre-commit | |
| 27 | - rev: v0.16.0 | ||
| 27 | + rev: v0.16.1 | ||
| 28 | 28 | hooks: | |
| 29 | 29 | - id: ruff-check | |
| 30 | 30 | args: [--fix] | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -21,7 +21,7 @@ def test_error_on_unknown_option(git2cpp_path): | |||
| 21 | 21 | p = subprocess.run(cmd, capture_output=True) | |
| 22 | 22 | assert p.returncode == 109 | |
| 23 | 23 | assert p.stdout == b"" | |
| 24 | - assert p.stderr.startswith(b"The following argument was not expected: --unknown") | ||
| 24 | + assert b"The following argument was not expected: --unknown" in p.stderr | ||
| 25 | 25 | ||
| 26 | 26 | ||
| 27 | 27 | @pytest.mark.skipif(not GIT2CPP_TEST_WASM, reason="Only test in WebAssembly") | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -97,15 +97,15 @@ def test_error_on_unknown_option(git2cpp_path): | |||
| 97 | 97 | p = subprocess.run(cmd, capture_output=True) | |
| 98 | 98 | assert p.returncode == 109 | |
| 99 | 99 | assert p.stdout == b"" | |
| 100 | - assert p.stderr.startswith(b"The following argument was not expected: --unknown") | ||
| 100 | + assert b"The following argument was not expected: --unknown" in p.stderr | ||
| 101 | 101 | ||
| 102 | 102 | ||
| 103 | 103 | def test_error_on_repeated_directory(git2cpp_path): | |
| 104 | 104 | cmd = [git2cpp_path, "init", "abc", "def"] | |
| 105 | 105 | p = subprocess.run(cmd, capture_output=True) | |
| 106 | 106 | assert p.returncode == 109 | |
| 107 | 107 | assert p.stdout == b"" | |
| 108 | - assert p.stderr.startswith(b"The following argument was not expected: def") | ||
| 108 | + assert b"The following argument was not expected: def" in p.stderr | ||
| 109 | 109 | ||
| 110 | 110 | ||
| 111 | 111 | def test_init_creates_missing_parent_directories(git2cpp_path, tmp_path): | |
| Back | FazBrowse Home | New Git URL |
0 commit comments