MCPcopy Create free account
hub / github.com/certbot/certbot / setUp

Method setUp

certbot/src/certbot/_internal/tests/hook_test.py:185–194  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

183 return post_hook(*args, **kwargs)
184
185 def setUp(self):
186 super().setUp()
187
188 self.config.post_hook = "bar"
189 filesystem.makedirs(self.config.renewal_post_hooks_dir)
190 self.dir_hook = os.path.join(self.config.renewal_post_hooks_dir, "foo")
191 create_hook(self.dir_hook)
192
193 # Reset this value as it may have been modified by past tests
194 self._reset_post_hook_eventually()
195
196 def tearDown(self):
197 # Reset this value so it's unmodified for future tests

Callers

nothing calls this directly

Calls 3

create_hookFunction · 0.85
setUpMethod · 0.45

Tested by

no test coverage detected