[PR #1535] [MERGED] add API tests for list handler #10611

Closed
opened 2026-04-12 23:04:57 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/1535
Author: @pdevine
Created: 12/15/2023
Status: Merged
Merged: 12/15/2023
Merged by: @pdevine

Base: mainHead: api-unittests-list


📝 Commits (1)

  • 7268139 add API tests for list handler

📊 Changes

1 file changed (+61 additions, -0 deletions)

View changed files

📝 server/routes_test.go (+61 -0)

📄 Description

This change adds some tests for the GET /api/list endpoint. It includes a test that gets no models, and one that returns a single entry.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/1535 **Author:** [@pdevine](https://github.com/pdevine) **Created:** 12/15/2023 **Status:** ✅ Merged **Merged:** 12/15/2023 **Merged by:** [@pdevine](https://github.com/pdevine) **Base:** `main` ← **Head:** `api-unittests-list` --- ### 📝 Commits (1) - [`7268139`](https://github.com/ollama/ollama/commit/7268139415896c43013379f6d43eb6f06be9119c) add API tests for list handler ### 📊 Changes **1 file changed** (+61 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `server/routes_test.go` (+61 -0) </details> ### 📄 Description This change adds some tests for the `GET /api/list` endpoint. It includes a test that gets no models, and one that returns a single entry. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-12 23:04:57 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#10611