mirror of
https://github.com/nvbn/thefuck.git
synced 2025-03-25 03:59:08 +00:00
- Add: tests/test_go_unknown_command which tests match and mismatch case of rules/go_unknown_command. - Change: Added description of go_unknown_command to README.md.
14 lines
354 B
Python
14 lines
354 B
Python
from thefuck.rules.go_unknown_command import match
|
|
from thefuck.types import Command
|
|
|
|
_GO_BUILD_MISSPELLED_OUTPUT = """go bulid: unknown command
|
|
Run 'go help' for usage."""
|
|
|
|
|
|
def test_match():
|
|
assert match(Command('go bulid', _GO_BUILD_MISSPELLED_OUTPUT))
|
|
|
|
|
|
def test_not_match():
|
|
assert not match(Command('go run', 'go run: no go files listed'))
|