def setUpClass(self):
# Getting pass-import module
super(TestPass, self).setUpClass()
# Pass binary
os.environ['PASSWORD_STORE_BIN'] = shutil.which("pass")
# GPG Config
if 'GPG_AGENT_INFO' in os.environ:
os.environ.pop('GPG_AGENT_INFO', None)
os.environ['GNUPGHOME'] = os.path.join(os.getcwd(), 'gnupg')
# Tests directories
self.tmp = os.path.join(self.tmp, self.__name__[8:].lower())
shutil.rmtree(self.tmp, ignore_errors=True)
os.makedirs(self.tmp, exist_ok=True)
评论列表
文章目录