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:
commit
bbe5b4c703
1 changed files with 1 additions and 0 deletions
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue