# 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
# -*- coding: utf-8 -*-




def test_self(settings, inspector):
    """
    Ensure self import is detected
    """
    sourcepath_0 = os.path.join(settings.sample_path, 'main_circular_0.scss')

    sources = [
        os.path.join(settings.sample_path, 'main_basic.scss'),
        sourcepath_0,
    ]

    inspector.inspect(*sources)


# 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

# -*- coding: utf-8 -*-




def test_self(settings, inspector):
    """
    Ensure self import is detected
    """
    sourcepath_0 = os.path.join(settings.sample_path, 'main_circular_0.scss')

    sources = [
        os.path.join(settings.sample_path, 'main_basic.scss'),
        sourcepath_0,
    ]

    inspector.inspect(*sources)


    with pytest.raises(CircularImport):