tests: mock more things in secondary hobo cook test

This commit is contained in:
Frédéric Péters 2019-06-04 15:42:03 +02:00
parent f57c8a7718
commit c83ef92a3a
1 changed files with 2 additions and 0 deletions

View File

@ -323,6 +323,8 @@ def test_create_hobo_primary(mocked_TenantMiddleware, mocked_call_command,
def test_create_hobo_not_primary(mocked_TenantMiddleware, mocked_call_command,
mocked_connection):
command = Command()
command.timeout = 42
command.wait_operationals = Mock()
command.create_site = Mock()
tenant = Mock()
tenant.schema_name = 'other than public'