Replace _multiRow, _singleRow, _singleValue with QP

Fixes: https://pagure.io/koji/issue/3581
This commit is contained in:
Jana Cupova 2022-11-15 10:14:29 +01:00 committed by Tomas Kopecek
parent 769ac0e178
commit a8dd469091
7 changed files with 138 additions and 92 deletions

View file

@ -259,8 +259,7 @@ class TestGrouplist(unittest.TestCase):
self.assertEqual(u.values['user_id'], uid)
self.assertEqual(u.values['group_id'], gid)
@mock.patch('kojihub._multiRow')
def test_get_group_members(self, _multiRow):
def test_get_group_members(self):
group, gid = 'test_group', 1
# no permission
@ -300,4 +299,3 @@ class TestGrouplist(unittest.TestCase):
self.assertEqual(len(self.queries), 1)
self.assertEqual(len(self.inserts), 0)
self.assertEqual(len(self.updates), 0)
_multiRow.assert_not_called()