import pytest

from mist.io.tests import config
from mist.io.tests.api.io import MistIoApi


@pytest.fixture
def pretty_print(request):
    print "\n============================================================"
    print " ".join([word.capitalize() for word in request.function.__name__.split('_')])

    def fin():
        print "\n============================================================"

    request.addfinalizer(fin)
    return 'bla'


@pytest.fixture
def email():
    return config.EMAIL


@pytest.fixture
def password1():
    return config.PASSWORD1


@pytest.fixture
def password2():
    return config.PASSWORD2


@pytest.fixture
def mist_io():
    return MistIoApi(config.MIST_URL)

@pytest.fixture
def script_id():
    return config.SCRIPT_ID

@pytest.fixture
def machines_per_clouds():
    return config.MACHINES_PER_CLOUD

@pytest.fixture
def expires():
    return config.EXPIRES




import pytest

from mist.io.tests import config
from mist.io.tests.api.io import MistIoApi


@pytest.fixture
def pretty_print(request):
    print "\n============================================================"
    print " ".join([word.capitalize() for word in request.function.__name__.split('_')])

    def fin():
        print "\n============================================================"

    request.addfinalizer(fin)
    return 'bla'


@pytest.fixture
def email():
    return config.EMAIL


@pytest.fixture
def password1():
    return config.PASSWORD1


@pytest.fixture
def password2():
    return config.PASSWORD2


@pytest.fixture
def mist_io():
    return MistIoApi(config.MIST_URL)

@pytest.fixture
def script_id():
    return config.SCRIPT_ID

@pytest.fixture
def machines_per_cloud():
    return config.MACHINES_PER_CLOUD

@pytest.fixture
def expires():
    return config.EXPIRES




add machine_per_cloud, expires for cronjob