Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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
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
import muffin
from backend.app import create_app
app = application = create_app()
import backend.webdriver.views
import backend.api.views
muffin.import_submodules(__name__)