def test_autoscan(monkeypatch):
    import sys

    for k in 'base.m', 'entrypoint.app', 'under_score.m':
        monkeypatch.delitem(sys.modules, k, raising=False)

    autoscan()

    assert 'base.m' in sys.modules
    assert 'entrypoint.app' in sys.modules
    assert 'under_score.m' in sys.modules
dataset/ETHPy150Open morepath/morepath/morepath/tests/test_autosetup.py/test_autoscan/original