示例#1
0
文件: main.py 项目: toXel/pass_export
def main():
    store = PasswordStore()
    entries = store.get_passwords_list()
    with open('pass.csv', 'w', newline='') as csvfile:
        csvwriter = csv.writer(csvfile)
        for entry in entries:
            csvwriter.writerow(parse(entry, store))
示例#2
0
 def test_get_passwords_list(self):
     store = PasswordStore(self.dir)
     self.assertListEqual(
         sorted(store.get_passwords_list()),
         sorted([
             'test.com',
             'linux.ca',
             'passwordstore.org',
             'Email/email.com',
         ]))
 def test_get_passwords_list(self):
     store = PasswordStore(self.dir)
     self.assertListEqual(
         sorted(store.get_passwords_list()),
         sorted([
             'test.com',
             'linux.ca',
             'passwordstore.org',
             'Email/email.com',
         ])
     )