# Path: mcloud/util.py
# @contextmanager
# def inject_services(configurator):
#     inject.clear_and_configure(configurator)
#     yield
#     inject.clear()


import inject
from mcloud.util import inject_services



def test_inject_services():
    class Boo():
        pass

    class Baz():
        pass

    def configure(binder):
        binder.bind(Boo, Baz())


# Path: mcloud/util.py
# @contextmanager
# def inject_services(configurator):
#     inject.clear_and_configure(configurator)
#     yield
#     inject.clear()


# Path: tests/test_inject_context.py
import inject
from mcloud.util import inject_services




def test_inject_services():
    class Boo():
        pass

    class Baz():
        pass

    def configure(binder):
        binder.bind(Boo, Baz())


    with inject_services(configure):