def test_shell_profile_none(monkeypatch):
    mock(monkeypatch)
    set_up()
    settings.update({
        'append': {
            'test': None
        }
    }).save()
    Shell.run(mock_options_2)
    tear_down()
def test_shell(monkeypatch):
    mock(monkeypatch)
    set_up()
    settings.update({
        'path': 'append_test'
    }).save()
    Create.run(mock_options)
    settings.update({
        'path': 'iprofiles'
    }).save()
    Shell.run(mock_options)
    Shell.run(mock_options_2)
    tear_down()
def test_shell_active(monkeypatch):
    mock(monkeypatch)
    set_up()
    Create.run(mock_options_create)
    Shell.run(mock_options_1)
    settings.update({
        'path': 'append_test'
    }).save()
    Create.run(mock_options_create)
    settings.update({
        'path': 'iprofiles'
    }).save()
    Activate.run(mock_options_2)
    Shell.run(mock_options_1)
    tear_down()
def test_shell_invalid_profile(monkeypatch):
    mock(monkeypatch)
    set_up()
    Shell.run(mock_options)
    tear_down()
def test_shell_other_project_profile(monkeypatch):
    mock(monkeypatch)
    set_up()
    Shell.run(mock_options)
    tear_down()
Beispiel #6
0
 def handle(self, **options):
     Shell.run(options)