MCPcopy Create free account
hub / github.com/pytest-dev/pytest / from_config

Method from_config

src/_pytest/main.py:484–486  ·  view source on GitHub ↗
(cls, config: Config)

Source from the content-addressed store, hash-verified

482
483 @classmethod
484 def from_config(cls, config: Config) -> "Session":
485 session: Session = cls._create(config=config)
486 return session
487
488 def __repr__(self) -> str:
489 return "<%s %s exitstatus=%r testsfailed=%d testscollected=%d>" % (

Callers 8

getnodeMethod · 0.45
getpathnodeMethod · 0.45
wrap_sessionFunction · 0.45
test_hook_proxyMethod · 0.45
test_collect_topdirMethod · 0.45
test_mktempMethod · 0.45
make_functionMethod · 0.45

Calls 1

_createMethod · 0.80

Tested by 6

getnodeMethod · 0.36
getpathnodeMethod · 0.36
test_hook_proxyMethod · 0.36
test_collect_topdirMethod · 0.36
test_mktempMethod · 0.36