blob: cd66957831ff9b961759a5f9a513cf67db1612cf [file] [log] [blame]
Anthony Sottile8f615292022-01-15 19:24:05 -05001from __future__ import annotations
2
Anthony Sottileb9cc9d72020-05-14 16:00:29 -07003import pytest
4
5from pre_commit_hooks.removed import main
6
7
8def test_always_fails():
9 with pytest.raises(SystemExit) as excinfo:
10 main((
11 'autopep8-wrapper', 'autopep8',
12 'https://github.com/pre-commit/mirrors-autopep8',
Pedro Calleja926208f2020-05-18 21:27:24 -050013 '--foo', 'bar',
Anthony Sottileb9cc9d72020-05-14 16:00:29 -070014 ))
15 msg, = excinfo.value.args
16 assert msg == (
17 '`autopep8-wrapper` has been removed -- '
18 'use `autopep8` from https://github.com/pre-commit/mirrors-autopep8'
19 )