コード例 #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',
         ]))
コード例 #3
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',
         ])
     )