123456 |
- def test_create_database(self, mock_cosmos):
- hook = AzureCosmosDBHook(azure_cosmos_conn_id='azure_cosmos_test_key_id')
- hook.create_database(self.test_database_name)
- expected_calls = [mock.call().create_database('test_database_name')]
- mock_cosmos.assert_any_call(self.test_end_point, {'masterKey': self.test_master_key})
- mock_cosmos.assert_has_calls(expected_calls)
|