# Path: boussole/exceptions.py
# class UnresolvablePath(BoussoleBaseException):
#     """
#     Exception to be raised when the resolver can not resolve a given path.
#     """
#     pass
# 
# Path: boussole/exceptions.py
# class UnclearResolution(BoussoleBaseException):
#     """
#     Exception to be raised when the resolver encounts multiple existing
#     candidates for a path.
#     """
#     pass


import os
import pytest
from boussole.exceptions import UnresolvablePath
from boussole.exceptions import UnclearResolution
        finded_paths = parser.parse(fp.read())

    with pytest.raises(UnresolvablePath):
        resolver.resolve(
            sourcepath,
            finded_paths,
            library_paths=settings.libraries_fixture_paths
        )


def test_error_unclear_001(settings, parser, resolver):
    """Check candidates on unclear resolution"""
    sourcepath = os.path.join(settings.sample_path, 'main_twins_1.scss')
    with open(sourcepath) as fp:
        finded_paths = parser.parse(fp.read())

    with pytest.raises(UnclearResolution):
        resolver.resolve(
            sourcepath,
            finded_paths,
            library_paths=settings.libraries_fixture_paths
        )


def test_error_unclear_002(settings, parser, resolver):
    """Check candidates on unclear resolution"""
    sourcepath = os.path.join(settings.sample_path, 'main_twins_2.scss')
    with open(sourcepath) as fp:
        finded_paths = parser.parse(fp.read())


# Path: boussole/exceptions.py
# class UnresolvablePath(BoussoleBaseException):
#     """
#     Exception to be raised when the resolver can not resolve a given path.
#     """
#     pass
# 
# Path: boussole/exceptions.py
# class UnclearResolution(BoussoleBaseException):
#     """
#     Exception to be raised when the resolver encounts multiple existing
#     candidates for a path.
#     """
#     pass


# Path: tests/003_resolver/010_resolving.py
import os
import pytest
from boussole.exceptions import UnresolvablePath
from boussole.exceptions import UnclearResolution

        finded_paths = parser.parse(fp.read())

    with pytest.raises(UnresolvablePath):
        resolver.resolve(
            sourcepath,
            finded_paths,
            library_paths=settings.libraries_fixture_paths
        )


def test_error_unclear_001(settings, parser, resolver):
    """Check candidates on unclear resolution"""
    sourcepath = os.path.join(settings.sample_path, 'main_twins_1.scss')
    with open(sourcepath) as fp:
        finded_paths = parser.parse(fp.read())

    with pytest.raises(UnclearResolution):
        resolver.resolve(
            sourcepath,
            finded_paths,
            library_paths=settings.libraries_fixture_paths
        )


def test_error_unclear_002(settings, parser, resolver):
    """Check candidates on unclear resolution"""
    sourcepath = os.path.join(settings.sample_path, 'main_twins_2.scss')
    with open(sourcepath) as fp:
        finded_paths = parser.parse(fp.read())


    with pytest.raises(UnclearResolution):