1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-09-19 03:32:31 +01:00

#87 Add ability to fix branch names in git_checkout rule

This commit is contained in:
nvbn
2015-07-20 19:25:29 +03:00
parent ee87d1c547
commit 4f5659caad
5 changed files with 50 additions and 13 deletions

View File

@@ -59,3 +59,7 @@ class TestGetClosest(object):
def test_when_cant_match(self):
assert 'status' == get_closest('st', ['status', 'reset'])
def test_without_fallback(self):
assert get_closest('st', ['status', 'reset'],
fallback_to_first=False) is None