tests/_fixtures.py
def mocked_config():
    """Fixture for mocking DIRBS .yml config so that tests do not depend on a user's config at all."""
    mocked_config_path = path.abspath(path.dirname(__file__) + '/unittest_data/config/config.yml')
    cp = dirbs.config.ConfigParser()
    mocked_config = cp.parse_config(ignore_env=True,
                                    config_paths=[mocked_config_path])
    yield mocked_config
Fixture for mocking DIRBS .yml config so that tests do not depend on a user's config at all.
Fixture for mocking DIRBS .yml config so that tests do not depend on a user's config at all.
Fixture for mocking DIRBS . yml config so that tests do not depend on a user ' s config at all .
def mocked_config():
    mocked_config_path = path.abspath(path.dirname(__file__) + '/unittest_data/config/config.yml')
    cp = dirbs.config.ConfigParser()
    mocked_config = cp.parse_config(ignore_env=True,
                                    config_paths=[mocked_config_path])
    yield mocked_config
def mocked_config ( ) : mocked_config_path = path . abspath ( path . dirname ( __file__ ) + '/unittest_data/config/config.yml' ) cp = dirbs . config . ConfigParser ( ) mocked_config = cp . parse_config ( ignore_env = True , config_paths = [ mocked_config_path ] ) yield mocked_config
Fixture for mocking DIRBS .yml config so that tests do not depend on a user's config at all.
Fixture for mocking DIRBS . yml config so that tests do not depend on a user ' s config at all .
"""Fixture for mocking DIRBS .yml config so that tests do not depend on a user's config at all."""