MCPcopy Create free account
hub / github.com/Lap-Platform/LAP / setup_method

Method setup_method

tests/test_cli_auth.py:24–32  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

22 """Test save/load/clear/get_token for ~/.lap/credentials.json."""
23
24 def setup_method(self):
25 self.tmpdir = tempfile.mkdtemp()
26 self.creds_dir = Path(self.tmpdir) / ".lap"
27 self.creds_file = self.creds_dir / "credentials.json"
28 # Patch module-level paths
29 self._dir_patch = patch.object(auth, "CREDENTIALS_DIR", self.creds_dir)
30 self._file_patch = patch.object(auth, "CREDENTIALS_FILE", self.creds_file)
31 self._dir_patch.start()
32 self._file_patch.start()
33
34 def teardown_method(self):
35 self._dir_patch.stop()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected