PR#2759: tests: stop mock in DBQueryTest

Merges #2759
https://pagure.io/koji/pull-request/2759

Fixes: #2758
https://pagure.io/koji/issue/2758
DBQueryTest doesn't clean mock env
This commit is contained in:
Tomas Kopecek 2021-03-15 13:34:51 +01:00
commit bbe5b4c703

View file

@ -9,6 +9,7 @@ QP = kojihub.QueryProcessor
class DBQueryTestCase(unittest.TestCase):
def setUp(self):
mock.patch.stopall()
self.qp_execute_return_value = []
self.qp_execute_side_effect = None
self.QueryProcessor = mock.patch('kojihub.QueryProcessor',