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:
@@ -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
|
||||
|
Reference in New Issue
Block a user