mirror of
https://github.com/nvbn/thefuck.git
synced 2025-03-14 06:38:32 +00:00
separate out matching tests so the pattern is clear for those who add matches in the future
This commit is contained in:
parent
e1f0ff4418
commit
a72845be23
@ -8,8 +8,11 @@ def output():
|
||||
return ""
|
||||
|
||||
|
||||
def test_match(output):
|
||||
def test_match_git_branch_0v(output):
|
||||
assert match(Command('git branch 0v', output))
|
||||
|
||||
|
||||
def test_matches_no__git_branch_0_anything(output):
|
||||
assert not match(Command('git branch -v', ''))
|
||||
assert not match(Command('ls', output))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user