MCPcopy Index your code
hub / github.com/pyinvoke/invoke / setup_method

Method setup_method

integration/main.py:18–21  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

16
17class Main:
18 def setup_method(self) -> None:
19 self.cwd = os.getcwd()
20 # Enter integration/_support as all support files are in there now
21 os.chdir(Path(__file__).parent / "_support")
22
23 def teardown_method(self) -> None:
24 os.chdir(self.cwd)

Callers

nothing calls this directly

Calls 1

PathClass · 0.85

Tested by

no test coverage detected