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


import pytest
from djangocodemirror.exceptions import NotRegisteredError

def test_get_configs_multiple_success(settings, manifesto):
    """Use get_configs for all registred configs"""
    manifesto.register('empty')
    manifesto.register('basic')

    registred = manifesto.get_configs()

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


def test_get_configs_single_error(settings, manifesto):
    """Use get_configs on single 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


def test_get_configs_multiple_success(settings, manifesto):
    """Use get_configs for all registred configs"""
    manifesto.register('empty')
    manifesto.register('basic')

    registred = manifesto.get_configs()

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


def test_get_configs_single_error(settings, manifesto):
    """Use get_configs on single non registered name"""
    manifesto.autoregister()

    with pytest.raises(NotRegisteredError):