##// END OF EJS Templates
tests: fixed mock test for utils2
marcink -
r274:fe04cba5 default
parent child Browse files
Show More
@@ -29,6 +29,7 b' import pytest'
29 from rhodecode.lib import caching_query
29 from rhodecode.lib import caching_query
30 from rhodecode.lib import utils
30 from rhodecode.lib import utils
31 from rhodecode.lib.utils2 import md5
31 from rhodecode.lib.utils2 import md5
32 from rhodecode.model import settings
32 from rhodecode.model import db
33 from rhodecode.model import db
33 from rhodecode.model import meta
34 from rhodecode.model import meta
34 from rhodecode.model.repo import RepoModel
35 from rhodecode.model.repo import RepoModel
@@ -402,7 +403,7 b' class TestConfigDataFromDb(object):'
402 ]
403 ]
403 repo_name = 'test_repo'
404 repo_name = 'test_repo'
404
405
405 model_patch = mock.patch.object(utils, 'VcsSettingsModel')
406 model_patch = mock.patch.object(settings, 'VcsSettingsModel')
406 hooks_patch = mock.patch.object(
407 hooks_patch = mock.patch.object(
407 utils, 'get_enabled_hook_classes',
408 utils, 'get_enabled_hook_classes',
408 return_value=['pull', 'push', 'repo_size'])
409 return_value=['pull', 'push', 'repo_size'])
General Comments 0
You need to be logged in to leave comments. Login now