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

Method env

tests/test_sessions.py:34–43  ·  view source on GitHub ↗

Return an environment. Each environment created within a test method will share the same config_dir. It is necessary for session files being reused.

(self)

Source from the content-addressed store, hash-verified

32 shutil.rmtree(self.config_dir)
33
34 def env(self):
35 """
36 Return an environment.
37
38 Each environment created within a test method
39 will share the same config_dir. It is necessary
40 for session files being reused.
41
42 """
43 return MockEnvironment(config_dir=self.config_dir)
44
45
46class CookieTestBase:

Calls 1

MockEnvironmentClass · 0.85

Tested by

no test coverage detected