def test_list_staticsite_environments_without_resourcegroup(self): self.staticapp_client.list.return_value = [self.app1, self.app2] list_staticsite_environments(self.mock_cmd, self.name1) self.staticapp_client.get_static_site_builds.assert_called_once_with( self.rg1, self.name1)
def test_list_staticsite_environments_with_resourcegroup(self): list_staticsite_environments(self.mock_cmd, self.name1, self.rg1) self.staticapp_client.get_static_site_builds.assert_called_once_with( self.rg1, self.name1)