Example #1
0
def test_init_active_invalid_profile():
    Init.run(mock_options_1)
    os.remove('iprofile.yml')
    Init.run(mock_options_2)
    tear_down()
Example #2
0
def test_init_profiles_exists():
    Init.run(mock_options_1)
    Create.run(mock_options_3)
    os.remove('iprofile.yml')
    Init.run(mock_options_1)
    tear_down()
Example #3
0
def test_init_active():
    Init.run(mock_options_1)
    Create.run(mock_options_3)
    os.remove('iprofile.yml')
    Init.run(mock_options_2)
    tear_down()
Example #4
0
def test_init_default_path():
    Init.run(mock_options_1)
    tear_down()
Example #5
0
def test_init_settings_exist():
    set_up()
    Init.run(mock_options)
    tear_down()
Example #6
0
def test_init():
    Init.run(mock_options)
    assert os.path.isdir(settings.get('path'))
    tear_down()