def test_disconnect_staticapp_without_resourcegroup(self): self.staticapp_client.list.return_value = [self.app1, self.app2] disconnect_staticsite(self.mock_cmd, self.name1) self.staticapp_client.detach_static_site.assert_called_once_with( resource_group_name=self.rg1, name=self.name1)
def test_disconnect_staticapp_with_resourcegroup(self): disconnect_staticsite(self.mock_cmd, self.name1, self.rg1) self.staticapp_client.detach_static_site.assert_called_once_with( resource_group_name=self.rg1, name=self.name1)