1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-10-16 08:43:56 +01:00

Add Powershell as a supported shell

- There may be additional functionality to implement, but I've been
  running this way for a month with no known issues
This commit is contained in:
Matt Kotsenas
2016-03-15 14:12:37 -07:00
parent 2207dd2668
commit 6daf687237
3 changed files with 40 additions and 1 deletions

View File

@@ -0,0 +1,19 @@
# -*- coding: utf-8 -*-
import pytest
from thefuck.shells import Powershell
@pytest.mark.usefixtures('isfile', 'no_memoize', 'no_cache')
class TestPowershell(object):
@pytest.fixture
def shell(self):
return Powershell()
def test_and_(self, shell):
assert shell.and_('ls', 'cd') == '(ls) -and (cd)'
def test_app_alias(self, shell):
assert 'function fuck' in shell.app_alias('fuck')
assert 'function FUCK' in shell.app_alias('FUCK')
assert 'thefuck' in shell.app_alias('fuck')