1
0
Fork 0
pre-commit-hooks/tests/removed_test.py
Daniel Baumann 6bd375ed5f
Adding upstream version 4.5.0+dfsg.
Signed-off-by: Daniel Baumann <daniel@debian.org>
2025-02-09 20:21:14 +01:00

19 lines
510 B
Python

from __future__ import annotations
import pytest
from pre_commit_hooks.removed import main
def test_always_fails():
with pytest.raises(SystemExit) as excinfo:
main((
'autopep8-wrapper', 'autopep8',
'https://github.com/pre-commit/mirrors-autopep8',
'--foo', 'bar',
))
msg, = excinfo.value.args
assert msg == (
'`autopep8-wrapper` has been removed -- '
'use `autopep8` from https://github.com/pre-commit/mirrors-autopep8'
)