Преглед на файлове

update doc string in get_ids

oz123 преди 11 години
родител
ревизия
91502b9ca7
променени са 2 файла, в които са добавени 7 реда и са изтрити 0 реда
  1. 2 0
      pwman/tests/db_tests.py
  2. 5 0
      pwman/ui/cli.py

+ 2 - 0
pwman/tests/db_tests.py

@@ -158,3 +158,5 @@ class CLITests(unittest.TestCase):
         # the second was added just now.
         # This will pass only when running all the tests than ...
         self.assertEqual(len(rows), 2)
+
+    #TODO: implement a test for get_ids

+ 5 - 0
pwman/ui/cli.py

@@ -73,6 +73,11 @@ class PwmanCliOld(cmd.Cmd, HelpUI, BaseUI):
         return True
 
     def get_ids(self, args):
+        """
+        Command can get a single ID or
+        a range of IDs, with begin-end.
+        e.g. 1-3 , will get 1 to 3.
+        """
         ids = []
         rex = re.compile(r"^(\d+)-(\d+)$")
         idstrs = args.split()