# Path: boussole/exceptions.py
# class CircularImport(BoussoleBaseException):
#     """
#     Exception to be raised when inspector detect a circular import from
#     sources.
#     """
#     pass


import os
import pytest
from boussole.exceptions import CircularImport
    sourcepath_4 = os.path.join(settings.sample_path, 'main_circular_4.scss')
    sourcepath_bridge = os.path.join(settings.sample_path, 'main_circular_bridge.scss')
    sourcepath_5 = os.path.join(settings.sample_path, 'main_circular_5.scss')

    sources = [
        os.path.join(settings.sample_path, 'main_basic.scss'),
        os.path.join(settings.sample_path, 'main_with_subimports.scss'),
        sourcepath_3,
        sourcepath_4,
        sourcepath_bridge,
        sourcepath_5,
    ]

    inspector.inspect(*sources)

    # Case 3
    with pytest.raises(CircularImport):
        list(inspector.children(sourcepath_3))

    with pytest.raises(CircularImport):
        list(inspector.parents(sourcepath_3))

    # Case 4
    with pytest.raises(CircularImport):
        list(inspector.children(sourcepath_4))

    with pytest.raises(CircularImport):
        list(inspector.parents(sourcepath_4))

    # Bridge

# Path: boussole/exceptions.py
# class CircularImport(BoussoleBaseException):
#     """
#     Exception to be raised when inspector detect a circular import from
#     sources.
#     """
#     pass


# Path: tests/010_inspector/005_circular.py
import os
import pytest
from boussole.exceptions import CircularImport

    sourcepath_4 = os.path.join(settings.sample_path, 'main_circular_4.scss')
    sourcepath_bridge = os.path.join(settings.sample_path, 'main_circular_bridge.scss')
    sourcepath_5 = os.path.join(settings.sample_path, 'main_circular_5.scss')

    sources = [
        os.path.join(settings.sample_path, 'main_basic.scss'),
        os.path.join(settings.sample_path, 'main_with_subimports.scss'),
        sourcepath_3,
        sourcepath_4,
        sourcepath_bridge,
        sourcepath_5,
    ]

    inspector.inspect(*sources)

    # Case 3
    with pytest.raises(CircularImport):
        list(inspector.children(sourcepath_3))

    with pytest.raises(CircularImport):
        list(inspector.parents(sourcepath_3))

    # Case 4
    with pytest.raises(CircularImport):
        list(inspector.children(sourcepath_4))

    with pytest.raises(CircularImport):
        list(inspector.parents(sourcepath_4))

    # Bridge

    with pytest.raises(CircularImport):