def test_module_exclude(runner: CliRunner):
    result = runner.invoke(cli, ['-m', 'module_misc', '--exclude-modules', 'evil', '--no-strict-imports'], catch_exceptions=False)
    assert (result.exit_code == 0)
    assert (result.output == "NOTE:  Failed to import 'module_misc.a.b.__main__'.\nAll OK!\nScanned 16 module(s), 9 class(es).\n")
    from module_misc import a
    assert (not a.evil_was_imported)
def test_module_exclude(runner: CliRunner):
    result = runner.invoke(cli, ['-m', 'module_misc', '--exclude-modules', 'evil', '--no-strict-imports'], catch_exceptions=False)
    assert (result.exit_code == 0)
    assert (result.output == "NOTE:  Failed to import 'module_misc.a.b.__main__'.\nAll OK!\nScanned 16 module(s), 9 class(es).\n")
    from module_misc import a
    assert (not a.evil_was_imported)