MCPcopy Create free account
hub / github.com/catboost/catboost / _import_conftest

Function _import_conftest

library/python/pytest/plugins/conftests.py:39–48  ·  view source on GitHub ↗

Essentially PytestPluginManager._importconftest, adapted to resource-based conftest modules.

(pluginmanager, module_name, proper_path)

Source from the content-addressed store, hash-verified

37
38
39def _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
51def _getconftestmodules_local(self, path):

Calls 2

_consider_conftestFunction · 0.85
appendMethod · 0.45

Tested by

no test coverage detected