tests_multipublik: disable celery messages (#35251)
This commit is contained in:
parent
a5f0dac3a5
commit
c1d433c867
|
@ -23,7 +23,7 @@ def get_hobo_json_filename(tenant):
|
|||
json.dump(hobo_json, fd, indent=2)
|
||||
return json_filename
|
||||
|
||||
def test_multipublik(tenants):
|
||||
def test_multipublik(tenants, mocker):
|
||||
hobo1 = tenants[0]
|
||||
hobo1.base_url = 'http://tenant1.example.net/'
|
||||
with tenant_context(hobo1):
|
||||
|
@ -35,6 +35,11 @@ def test_multipublik(tenants):
|
|||
combo.save()
|
||||
|
||||
HoboDeployCommand().handle(hobo2.base_url, get_hobo_json_filename(hobo1))
|
||||
|
||||
# notify_agents will be called for secondary services: as celery
|
||||
# is not running we just block it
|
||||
mocker.patch('hobo.agent.hobo.management.commands.hobo_deploy.notify_agents')
|
||||
|
||||
hobo2 = TenantMiddleware.get_tenant_by_hostname('hobo2.example.net')
|
||||
hobo2.base_url = 'http://hobo2.example.net/'
|
||||
with tenant_context(hobo2):
|
||||
|
|
Loading…
Reference in New Issue