MCPcopy
hub / github.com/httpie/cli / setup_method

Method setup_method

tests/test_sessions.py:47–61  ·  view source on GitHub ↗
(self, method)

Source from the content-addressed store, hash-verified

45
46class CookieTestBase:
47 def setup_method(self, method):
48 self.config_dir = mk_config_dir()
49
50 orig_session = {
51 'cookies': {
52 'cookie1': {
53 'value': 'foo',
54 },
55 'cookie2': {
56 'value': 'foo',
57 }
58 }
59 }
60 self.session_path = self.config_dir / 'test-session.json'
61 self.session_path.write_text(json.dumps(orig_session), encoding=UTF8)
62
63 def teardown_method(self, method):
64 shutil.rmtree(self.config_dir)

Callers

nothing calls this directly

Calls 1

mk_config_dirFunction · 0.85

Tested by

no test coverage detected