From 2d0b90735671f0b816a87e2393b91925da7c057e Mon Sep 17 00:00:00 2001 From: Yoav Tzelnick Date: Fri, 1 Nov 2019 02:41:07 +0200 Subject: [PATCH] Changed tests to match implementation --- tests/rules/test_rm_root.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/tests/rules/test_rm_root.py b/tests/rules/test_rm_root.py index b6ff9529..006ac39e 100644 --- a/tests/rules/test_rm_root.py +++ b/tests/rules/test_rm_root.py @@ -1,5 +1,5 @@ import pytest -from thefuck.rules.rm_root import match, get_new_command +from thefuck.rules.rm_root import match from thefuck.types import Command @@ -12,7 +12,3 @@ def test_match(): Command('rm', '/usr/bin/python')]) def test_not_match(command): assert not match(command) - - -def test_get_new_command(): - assert 'rm' not in (get_new_command(Command('rm -rf /', '')))