pre-commit-hooks/tests/autopep8_wrapper_test.py
2020-02-05 11:22:18 -08:00

10 lines
257 B
Python

import pytest
from pre_commit_hooks.autopep8_wrapper import main
def test_invariantly_fails():
with pytest.raises(SystemExit) as excinfo:
main()
msg, = excinfo.value.args
assert 'https://github.com/pre-commit/mirrors-autopep8' in msg