|
a/Allura/allura/tests/test_tasks.py |
|
b/Allura/allura/tests/test_tasks.py |
|
... |
|
... |
142 |
class TestRepoTasks(unittest.TestCase):
|
142 |
class TestRepoTasks(unittest.TestCase):
|
143 |
|
143 |
|
144 |
def setUp(self):
|
144 |
def setUp(self):
|
145 |
setup_basic_test()
|
145 |
setup_basic_test()
|
146 |
setup_global_objects()
|
146 |
setup_global_objects()
|
147 |
h.set_context('test', 'src')
|
147 |
h.set_context('test', 'src', neighborhood='Projects')
|
148 |
|
148 |
|
149 |
def test_init(self):
|
149 |
def test_init(self):
|
150 |
ns = M.Notification.query.find().count()
|
150 |
ns = M.Notification.query.find().count()
|
151 |
with mock.patch_object(c.app.repo, 'init') as f:
|
151 |
with mock.patch_object(c.app.repo, 'init') as f:
|
152 |
repo_tasks.init()
|
152 |
repo_tasks.init()
|