NEW: new unit tests
This commit is contained in:
parent
9f8b791bca
commit
97f13f6350
|
@ -5,15 +5,17 @@ Action Items from the code review:
|
|||
|
||||
xx1) Change table name from "metadata" to "app_details"
|
||||
|
||||
1) Regression Testing of all Features
|
||||
xx1) Regression Testing of all Features
|
||||
|
||||
2) Unit Tests
|
||||
a) create modified fingerprints for testing
|
||||
b) select databases for testing
|
||||
|
||||
3) Documentation
|
||||
|
||||
4) Look at SQL statements parsing errors
|
||||
|
||||
5) Fingerprint compare feature
|
||||
xx5) Fingerprint compare feature
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -0,0 +1,24 @@
|
|||
import unittest
|
||||
from libs.fingerprint import FingerprintDB
|
||||
|
||||
|
||||
# Here's our "unit tests".
|
||||
class FingerprintTestCase(unittest.TestCase):
|
||||
|
||||
def setUp(self):
|
||||
pass
|
||||
|
||||
def testOpenFingerprint(self, in_json):
|
||||
self.failUnless(True)
|
||||
|
||||
def testWriteFingerprint(self, filename):
|
||||
self.failIf(True)
|
||||
|
||||
def testWriteFingerprintFile(self, filename):
|
||||
self.failIf(True)
|
||||
|
||||
def main():
|
||||
unittest.main()
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
|
@ -0,0 +1,21 @@
|
|||
import unittest
|
||||
from libs.fingerprint import FingerprintDB
|
||||
|
||||
|
||||
class TestFingerprintCompare(unittest.TestCase):
|
||||
|
||||
def setUp(self):
|
||||
# open fingerprint
|
||||
pass
|
||||
|
||||
def testCompareFP(self, fp_dir):
|
||||
self.failUnless(True)
|
||||
|
||||
def testCompareDB(self):
|
||||
self.failIf(True)
|
||||
|
||||
def main():
|
||||
unittest.main()
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
|
@ -0,0 +1,23 @@
|
|||
import unittest
|
||||
from libs.fingerprint import FingerprintDB
|
||||
|
||||
|
||||
class TestFingerprintIndex(unittest.TestCase):
|
||||
|
||||
def setUp(self):
|
||||
pass
|
||||
|
||||
def testOpenFPIndex(self, fp_dir):
|
||||
self.failUnless(True)
|
||||
|
||||
def testCreateIndex(self):
|
||||
self.failIf(True)
|
||||
|
||||
def testFindFP(self, md5_db):
|
||||
self.failIf(True)
|
||||
|
||||
def main():
|
||||
unittest.main()
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
Loading…
Reference in New Issue