()
| 2 | |
| 3 | |
| 4 | def test_load_plugin_name(): |
| 5 | m = PluginManager(plugins=["dynamic.manager"]) |
| 6 | try: |
| 7 | _managers.append(m) |
| 8 | |
| 9 | # load by plugin id |
| 10 | module1 = m.load_plugin("manager") |
| 11 | # load by module name |
| 12 | module2 = m.load_plugin("dynamic.manager") |
| 13 | assert module1 |
| 14 | assert module2 |
| 15 | assert module1 is module2 |
| 16 | finally: |
| 17 | _managers.remove(m) |
nothing calls this directly
no test coverage detected