# Path: boussole/exceptions.py
# class InvalidImportRule(BoussoleBaseException):
#     """
#     Exception to be raised when the parser encounts an invalid import rule.
#     """
#     pass


import pytest
from boussole.exceptions import InvalidImportRule
# -*- coding: utf-8 -*-



def test_ok_001(settings, parser):
    """parser.ScssImportsParser: Single quote"""
    assert parser.strip_quotes("'foo'") == "foo"


def test_ok_002(settings, parser):
    """parser.ScssImportsParser: Double quotes"""
    assert parser.strip_quotes('"foo"') == "foo"


def test_ok_003(settings, parser):
    """parser.ScssImportsParser: Without quotes"""
    assert parser.strip_quotes("foo") == "foo"


def test_error_001(settings, parser):
    """parser.ScssImportsParser: Error, quote starting but not ended"""
    with pytest.raises(InvalidImportRule):
        parser.strip_quotes("'foo")


# Path: boussole/exceptions.py
# class InvalidImportRule(BoussoleBaseException):
#     """
#     Exception to be raised when the parser encounts an invalid import rule.
#     """
#     pass


# Path: tests/001_parser/001_unquote.py
import pytest
from boussole.exceptions import InvalidImportRule

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



def test_ok_001(settings, parser):
    """parser.ScssImportsParser: Single quote"""
    assert parser.strip_quotes("'foo'") == "foo"


def test_ok_002(settings, parser):
    """parser.ScssImportsParser: Double quotes"""
    assert parser.strip_quotes('"foo"') == "foo"


def test_ok_003(settings, parser):
    """parser.ScssImportsParser: Without quotes"""
    assert parser.strip_quotes("foo") == "foo"


def test_error_001(settings, parser):
    """parser.ScssImportsParser: Error, quote starting but not ended"""
    with pytest.raises(InvalidImportRule):
        parser.strip_quotes("'foo")


    with pytest.raises(InvalidImportRule):