mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-18 16:44:42 +04:00
test: fix failing tests
This commit is contained in:
parent
9e224f6e05
commit
d47e0c5386
1 changed files with 3 additions and 3 deletions
|
|
@ -143,7 +143,7 @@ FILES_CHANGED = (
|
||||||
|
|
||||||
|
|
||||||
NORMAL_PRE_COMMIT_RUN = re_assert.Matches(
|
NORMAL_PRE_COMMIT_RUN = re_assert.Matches(
|
||||||
fr'^\[INFO\] Initializing environment for .+\.\n'
|
fr'^\[INFO\] Initializing environment for .+\n'
|
||||||
fr'Bash hook\.+Passed\n'
|
fr'Bash hook\.+Passed\n'
|
||||||
fr'\[master [a-f0-9]{{7}}\] commit!\n'
|
fr'\[master [a-f0-9]{{7}}\] commit!\n'
|
||||||
fr'{FILES_CHANGED}'
|
fr'{FILES_CHANGED}'
|
||||||
|
|
@ -297,7 +297,7 @@ def test_environment_not_sourced(tempdir_factory, store):
|
||||||
|
|
||||||
|
|
||||||
FAILING_PRE_COMMIT_RUN = re_assert.Matches(
|
FAILING_PRE_COMMIT_RUN = re_assert.Matches(
|
||||||
r'^\[INFO\] Initializing environment for .+\.\n'
|
r'^\[INFO\] Initializing environment for .+\n'
|
||||||
r'Failing hook\.+Failed\n'
|
r'Failing hook\.+Failed\n'
|
||||||
r'- hook id: failing_hook\n'
|
r'- hook id: failing_hook\n'
|
||||||
r'- exit code: 1\n'
|
r'- exit code: 1\n'
|
||||||
|
|
@ -396,7 +396,7 @@ def test_install_with_existing_non_utf8_script(tmpdir, store):
|
||||||
|
|
||||||
FAIL_OLD_HOOK = re_assert.Matches(
|
FAIL_OLD_HOOK = re_assert.Matches(
|
||||||
r'fail!\n'
|
r'fail!\n'
|
||||||
r'\[INFO\] Initializing environment for .+\.\n'
|
r'\[INFO\] Initializing environment for .+\n'
|
||||||
r'Bash hook\.+Passed\n',
|
r'Bash hook\.+Passed\n',
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue