1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-10-31 07:04:12 +00:00

Merge pull request #212 from scorphus/fix-whois

fix(whois): check if there's at least one argument to `whois`
This commit is contained in:
Vladimir Iakovlev
2015-05-21 00:33:22 +03:00
2 changed files with 5 additions and 1 deletions

View File

@@ -11,6 +11,10 @@ def test_match(command):
assert match(command, None)
def test_not_match():
assert not match(Command(script='whois'), None)
@pytest.mark.parametrize('command, new_command', [
(Command('whois https://en.wikipedia.org/wiki/Main_Page'), 'whois en.wikipedia.org'),
(Command('whois https://en.wikipedia.org/'), 'whois en.wikipedia.org'),