예제 #1
0
파일: 003_open.py 프로젝트: feth/boussole
def test_ok_001(settings):
    """conf.base_backend.SettingsBackendBase: Open given filepath"""
    backend = SettingsBackendBase(basedir=settings.fixtures_path)

    path, filename = backend.parse_filepath()
    filepath = backend.check_filepath(path, filename)

    assert backend.open(filepath) == """Fake settings file as SettingsBackendBase dont implement a full usable interface."""
예제 #2
0
파일: 004_parse.py 프로젝트: feth/boussole
def test_ok_001(settings):
    """conf.base_backend.SettingsBackendBase: Dummy content parsing"""
    backend = SettingsBackendBase(basedir=settings.fixtures_path)

    path, filename = backend.parse_filepath()
    filepath = backend.check_filepath(path, filename)

    content = backend.open(filepath)

    assert backend.parse(filepath, content) == {}
예제 #3
0
파일: 003_open.py 프로젝트: feth/boussole
def test_ok_001(settings):
    """conf.base_backend.SettingsBackendBase: Open given filepath"""
    backend = SettingsBackendBase(basedir=settings.fixtures_path)

    path, filename = backend.parse_filepath()
    filepath = backend.check_filepath(path, filename)

    assert backend.open(
        filepath
    ) == """Fake settings file as SettingsBackendBase dont implement a full usable interface."""