Essentially PytestPluginManager._importconftest, adapted to resource-based conftest modules.
(pluginmanager, module_name, proper_path)
| 37 | |
| 38 | |
| 39 | def _import_conftest(pluginmanager, module_name, proper_path): |
| 40 | """Essentially PytestPluginManager._importconftest, adapted to resource-based conftest modules.""" |
| 41 | module = importlib.import_module(module_name) |
| 42 | |
| 43 | if six.PY3: |
| 44 | pluginmanager._check_non_top_pytest_plugins(module, proper_path) |
| 45 | |
| 46 | _consider_conftest(pluginmanager, module, proper_path) |
| 47 | conftest_info = LoadedConftestInfo(conftest_dir=os.path.dirname(proper_path), module=module) |
| 48 | pluginmanager._ya_loaded_conftest_infos.append(conftest_info) |
| 49 | |
| 50 | |
| 51 | def _getconftestmodules_local(self, path): |
no test coverage detected