Add some missing tests.

This commit is contained in:
Alexandre Pujol
2020-10-25 00:06:45 +01:00
parent d09e2d52db
commit 1fd31026fe
3 changed files with 10 additions and 1 deletions

View File

@@ -13,7 +13,6 @@ exclude_lines =
except ImportError
raise ImportError
raise NotImplementedError
except CredentialsIntegrityError
'empty password store.'
else: # python-magic
if __name__ == .__main__.:

View File

@@ -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']

View 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 = []