# Path: djangocodemirror/exceptions.py
# class NotRegisteredError(KeyError):
#     pass


import pytest
from djangocodemirror.exceptions import NotRegisteredError
"""
Tests against manifest for CodeMirror configurations
"""



def test_raw_config_empty(manifesto):
    """Empty config"""
    manifesto.autoregister()

    config = manifesto.get_codemirror_parameters('empty')

    assert config == {}


def test_get_config_success(settings, manifesto):
    """Use get_config on non registered name"""
    manifesto.autoregister()
    assert manifesto.get_config('empty') == {
        'modes': [],
        'addons': [],
        'themes': [],
        'css_bundle_name': 'dcm-empty_css',
        'js_bundle_name': 'dcm-empty_js',
    }


def test_get_config_error(settings, manifesto):
    """Use get_config on non registered name"""
    manifesto.autoregister()

# Path: djangocodemirror/exceptions.py
# class NotRegisteredError(KeyError):
#     pass


# Path: tests/001_manifest/test_004_config.py
import pytest
from djangocodemirror.exceptions import NotRegisteredError

"""
Tests against manifest for CodeMirror configurations
"""



def test_raw_config_empty(manifesto):
    """Empty config"""
    manifesto.autoregister()

    config = manifesto.get_codemirror_parameters('empty')

    assert config == {}


def test_get_config_success(settings, manifesto):
    """Use get_config on non registered name"""
    manifesto.autoregister()
    assert manifesto.get_config('empty') == {
        'modes': [],
        'addons': [],
        'themes': [],
        'css_bundle_name': 'dcm-empty_css',
        'js_bundle_name': 'dcm-empty_js',
    }


def test_get_config_error(settings, manifesto):
    """Use get_config on non registered name"""
    manifesto.autoregister()

    with pytest.raises(NotRegisteredError):