mirror of
https://github.com/roddhjav/pass-import.git
synced 2025-12-12 20:35:58 +01:00
Add some missing tests.
This commit is contained in:
@@ -13,7 +13,6 @@ exclude_lines =
|
||||
except ImportError
|
||||
raise ImportError
|
||||
raise NotImplementedError
|
||||
except CredentialsIntegrityError
|
||||
'empty password store.'
|
||||
else: # python-magic
|
||||
if __name__ == .__main__.:
|
||||
|
||||
@@ -27,6 +27,11 @@ class TestMainPass(tests.Test):
|
||||
cmd = ['passpack', tests.db + 'passpack.csv', '-vvv']
|
||||
self.main(cmd)
|
||||
|
||||
def test_main_classname(self):
|
||||
"""Testing: pass import Roboform db/roboform.csv -vvv."""
|
||||
cmd = ['Roboform', tests.db + 'roboform.csv', '-vvv']
|
||||
self.main(cmd)
|
||||
|
||||
def test_main_not_a_file(self):
|
||||
"""Testing: pass import revelation not_a_file."""
|
||||
cmd = ['revelation', 'not_a_file']
|
||||
|
||||
@@ -49,6 +49,11 @@ class TestMainSanityChecks(tests.Test):
|
||||
cmd = ['--list-importers', '--quiet']
|
||||
self.main(cmd, 0)
|
||||
|
||||
def test_main_list_verbose(self):
|
||||
"""Testing: pimport --list-importers --verbose."""
|
||||
cmd = ['--list-importers', '--verbose']
|
||||
self.main(cmd, 0)
|
||||
|
||||
def test_main_exporter_empty(self):
|
||||
"""Testing: password exporter not present."""
|
||||
cmd = []
|
||||
|
||||
Reference in New Issue
Block a user