Bläddra i källkod

Remove old legacy code from coverage testing

oz123 11 år sedan
förälder
incheckning
9b9dba1a38
2 ändrade filer med 4 tillägg och 4 borttagningar
  1. 1 1
      .travis.yml
  2. 3 3
      pwman/data/tags.py

+ 1 - 1
.travis.yml

@@ -9,7 +9,7 @@ install:
 # command to run tests, e.g. python setup.py test
 script:  
     # coverage run --source=pwman setup.py test
-    coverage run --omit="pwman/tests/*.py,pwman/ui/mac.py,pwman/ui/win.py,pwman/data/convertdb.py,pwman/data/nodes_multiple_approach.py,pwman/data/models.py,pwman/data/drivers/postgresql.py,pwman/data/drivers/mysql.py,pwman/ui/ocli.py,pwman/exchange/importer.py,pwman/data/drivers/osqlite.py" --source=pwman setup.py test && coverage html
+    coverage run --omit="pwman/tests/*.py,pwman/ui/mac.py,pwman/ui/win.py,pwman/data/convertdb.py,pwman/data/nodes_multiple_approach.py,pwman/data/models.py,pwman/data/drivers/postgresql.py,pwman/data/drivers/mysql.py,pwman/ui/ocli.py,pwman/exchange/importer.py,pwman/data/drivers/osqlite.py,pwman/ui/base.py" --source=pwman setup.py test && coverage html
 
 
 after_success:

+ 3 - 3
pwman/data/tags.py

@@ -23,7 +23,7 @@
 from pwman.util.crypto import CryptoEngine
 
 
-class Tag:
+class Tag:  # pragma: no cover
     """
     tags are specific strings used to classify nodes
     the methods in this class override some built-ins
@@ -57,7 +57,7 @@ class TagNew(object):
         enc = CryptoEngine.get()
         self._name = enc.encrypt(name)
 
-    def __eq__(self, other):
+    def __eq__(self, other):  # pragma: no cover
         if other._name == self._name:
             return True
         else:
@@ -74,5 +74,5 @@ class TagNew(object):
 
     @name.setter
     def name(self, value):
-        enc = CryptoEngine.get()  #  pragma: no cover
+        enc = CryptoEngine.get()  # pragma: no cover
         self._name = enc.encrypt(value)  # pragma: no cover