예제 #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',
         ])
     )