# Path: mapchete/errors.py
# class MapcheteProcessImportError(ImportError):
#     """Raised when a module of a mapchete process cannot be imported."""


import pytest
import mapchete
from mapchete.errors import MapcheteProcessImportError
        mp = mapchete.open(deprecated_params.dict)
    with pytest.deprecated_call():
        assert mp.config.process_bounds() == mp.config.bounds_at_zoom()
    with pytest.deprecated_call():
        assert mp.config.process_area() == mp.config.process_area()
    with pytest.deprecated_call():
        assert mp.config.at_zoom(5) == mp.config.params_at_zoom(5)
    with pytest.deprecated_call():
        assert mp.config.inputs == mp.config.input
    with pytest.deprecated_call():
        assert mp.config.crs == mp.config.process_pyramid.crs
    with pytest.deprecated_call():
        assert mp.config.metatiling == mp.config.process_pyramid.metatiling
    with pytest.deprecated_call():
        assert mp.config.pixelbuffer == mp.config.process_pyramid.pixelbuffer
    with pytest.deprecated_call():
        assert mp.config.process_file


def test_parse_deprecated_zooms(deprecated_params):
    deprecated_params.dict.pop("process_zoom")
    deprecated_params.dict.update(process_minzoom=0, process_maxzoom=5)
    with pytest.deprecated_call():
        with mapchete.open(deprecated_params.dict) as mp:
            assert mp.config.zoom_levels == list(range(0, 6))


def test_deprecated_process_class(deprecated_params):
    deprecated_params.dict.update(process_file="old_style_process.py")
    with pytest.deprecated_call():

# Path: mapchete/errors.py
# class MapcheteProcessImportError(ImportError):
#     """Raised when a module of a mapchete process cannot be imported."""


# Path: test/test_deprecated.py
import pytest
import mapchete
from mapchete.errors import MapcheteProcessImportError

        mp = mapchete.open(deprecated_params.dict)
    with pytest.deprecated_call():
        assert mp.config.process_bounds() == mp.config.bounds_at_zoom()
    with pytest.deprecated_call():
        assert mp.config.process_area() == mp.config.process_area()
    with pytest.deprecated_call():
        assert mp.config.at_zoom(5) == mp.config.params_at_zoom(5)
    with pytest.deprecated_call():
        assert mp.config.inputs == mp.config.input
    with pytest.deprecated_call():
        assert mp.config.crs == mp.config.process_pyramid.crs
    with pytest.deprecated_call():
        assert mp.config.metatiling == mp.config.process_pyramid.metatiling
    with pytest.deprecated_call():
        assert mp.config.pixelbuffer == mp.config.process_pyramid.pixelbuffer
    with pytest.deprecated_call():
        assert mp.config.process_file


def test_parse_deprecated_zooms(deprecated_params):
    deprecated_params.dict.pop("process_zoom")
    deprecated_params.dict.update(process_minzoom=0, process_maxzoom=5)
    with pytest.deprecated_call():
        with mapchete.open(deprecated_params.dict) as mp:
            assert mp.config.zoom_levels == list(range(0, 6))


def test_deprecated_process_class(deprecated_params):
    deprecated_params.dict.update(process_file="old_style_process.py")
    with pytest.deprecated_call():

        with pytest.raises(MapcheteProcessImportError):