update also pg with new test cases
@@ -9,7 +9,7 @@ from git import Repo as GitRepo
from parameterized import param, parameterized
from psycopg2 import connect
-TOTAL_PW_DISCOVERIES = 11
+TOTAL_PW_DISCOVERIES = 12
class TestScansPostgres(unittest.TestCase):
@@ -65,7 +65,7 @@ class TestScansPostgres(unittest.TestCase):
self.assertEqual(cm.exception.code, 5)
@parameterized.expand([
- param(pr_num=1, leaks=5),
+ param(pr_num=1, leaks=11),
param(pr_num=2, leaks=0)
])
def test_scan_pr(self, pr_num, leaks):
@@ -83,12 +83,12 @@ class TestScansPostgres(unittest.TestCase):
self.assertEqual(cm.exception.code, leaks)
@parameterized.expand([
- # param(force=True, leaks=5),
+ # param(force=True, leaks=11),
# param(force=False, leaks=0)
# parameterized is buggy with mock (as of #66 in its repo) so we
# cannot use param here as long as the issue doesn't get solved
# ref: https://github.com/wolever/parameterized/issues/66
- param(True, 5),
+ param(True, 11),
param(False, 0)
])
@patch('credentialdigger.client_postgres.PgClient.get_repo')
