How to use the muffin.import_submodules function in muffin

To help you get started, we’ve selected a few muffin examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github klen / muffin / tests / test_utils.py View on Github external
def test_import_submodules():
    from muffin import import_submodules

    result = import_submodules('muffin')
    assert len(result) == 8

    result = import_submodules('muffin', 'plugins', 'manage')
    assert len(result) == 2
github klen / muffin / tests / test_utils.py View on Github external
def test_import_submodules():
    from muffin import import_submodules

    result = import_submodules('muffin')
    assert len(result) == 8

    result = import_submodules('muffin', 'plugins', 'manage')
    assert len(result) == 2
github 2gis / vmmaster / backend / __init__.py View on Github external
import muffin
from backend.app import create_app


app = application = create_app()
import backend.webdriver.views
import backend.api.views
muffin.import_submodules(__name__)