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


import pytest
from django.conf import settings
from djangocodemirror.exceptions import UnknowConfigError
    assert registred == [
        {
            'modes': [],
            'addons': [],
            'themes': [],
            'css_bundle_name': 'dcm-empty_css',
            'js_bundle_name': 'dcm-empty_js',
        },
        {
            'mode': 'rst',
            'modes': [],
            'addons': [],
            'themes': [],
            'css_bundle_name': 'dcm-basic_css',
            'js_bundle_name': 'dcm-basic_js',
        },
    ]


def test_autoregister(manifesto):
    """Auto register every config from settings"""
    manifesto.autoregister()
    # Check only about some names, not all
    assert ('empty' in manifesto.registry) == True
    assert ('basic' in manifesto.registry) == True
    assert ('with-all' in manifesto.registry) == True


def test_register_nonexistent(settings, manifesto):
    """Try to register a config name that does not exist"""

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


# Path: tests/001_manifest/test_001_registry.py
import pytest
from django.conf import settings
from djangocodemirror.exceptions import UnknowConfigError

    assert registred == [
        {
            'modes': [],
            'addons': [],
            'themes': [],
            'css_bundle_name': 'dcm-empty_css',
            'js_bundle_name': 'dcm-empty_js',
        },
        {
            'mode': 'rst',
            'modes': [],
            'addons': [],
            'themes': [],
            'css_bundle_name': 'dcm-basic_css',
            'js_bundle_name': 'dcm-basic_js',
        },
    ]


def test_autoregister(manifesto):
    """Auto register every config from settings"""
    manifesto.autoregister()
    # Check only about some names, not all
    assert ('empty' in manifesto.registry) == True
    assert ('basic' in manifesto.registry) == True
    assert ('with-all' in manifesto.registry) == True


def test_register_nonexistent(settings, manifesto):
    """Try to register a config name that does not exist"""

    with pytest.raises(UnknowConfigError):