Kaynağa Gözat

add testing for auth and forget

oz123 11 yıl önce
ebeveyn
işleme
60c9fa52b6
1 değiştirilmiş dosya ile 7 ekleme ve 0 silme
  1. 7 0
      pwman/tests/db_tests.py

+ 7 - 0
pwman/tests/db_tests.py

@@ -363,6 +363,13 @@ class CLITests(unittest.TestCase):
     def test_do_tags(self):
         self.tester.cli.do_filter('bank')
 
+    def test_do_forget(self):
+        self.tester.cli.do_forget('')
+
+    def test_do_auth(self):
+        crypto = CryptoEngine.get()
+        crypto.auth('12345')
+
     def test_do_clear(self):
         self.tester.cli.do_clear('')