mirror of
https://github.com/nvbn/thefuck.git
synced 2025-01-18 20:11:17 +00:00
Changed tests to match implementation
This commit is contained in:
parent
69a1641a3c
commit
2d0b907356
@ -1,5 +1,5 @@
|
|||||||
import pytest
|
import pytest
|
||||||
from thefuck.rules.rm_root import match, get_new_command
|
from thefuck.rules.rm_root import match
|
||||||
from thefuck.types import Command
|
from thefuck.types import Command
|
||||||
|
|
||||||
|
|
||||||
@ -12,7 +12,3 @@ def test_match():
|
|||||||
Command('rm', '/usr/bin/python')])
|
Command('rm', '/usr/bin/python')])
|
||||||
def test_not_match(command):
|
def test_not_match(command):
|
||||||
assert not match(command)
|
assert not match(command)
|
||||||
|
|
||||||
|
|
||||||
def test_get_new_command():
|
|
||||||
assert 'rm' not in (get_new_command(Command('rm -rf /', '')))
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user