Skip to content

Commit eef42e5

Browse files
committed
topotato: add preenvcheck hook
Called immediately before `envcheck`. Signed-off-by: David Lamparter <[email protected]>
1 parent 1d9c0a9 commit eef42e5

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

topotato/hooks.py

+5
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@
1818
from .types import ISession
1919

2020

21+
@hookspec()
22+
def pytest_topotato_preenvcheck(session: "ISession"):
23+
pass
24+
25+
2126
@hookspec()
2227
def pytest_topotato_envcheck(session: "ISession", result: EnvcheckResult):
2328
pass

topotato/pytestintegration.py

+1
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ def pytest_sessionstart(session):
8383

8484
envstate = EnvcheckResult()
8585

86+
session.config.hook.pytest_topotato_preenvcheck(session=session)
8687
session.config.hook.pytest_topotato_envcheck(session=session, result=envstate)
8788

8889
if os.getuid() != 0:

0 commit comments

Comments
 (0)