mirror of
https://github.com/icereed/paperless-gpt.git
synced 2025-03-14 05:38:01 -05:00
fix tests
This commit is contained in:
parent
ce46847b39
commit
92a43b990e
1 changed files with 1 additions and 1 deletions
|
@ -203,7 +203,7 @@ func TestGetDocumentsByTags(t *testing.T) {
|
|||
// Set mock responses
|
||||
env.setMockResponse("/api/documents/", func(w http.ResponseWriter, r *http.Request) {
|
||||
// Verify query parameters
|
||||
expectedQuery := "query=tag:tag1+tag:tag2"
|
||||
expectedQuery := "tags__name__iexact=tag1&tags__name__iexact=tag2"
|
||||
assert.Equal(t, expectedQuery, r.URL.RawQuery)
|
||||
w.WriteHeader(http.StatusOK)
|
||||
json.NewEncoder(w).Encode(documentsResponse)
|
||||
|
|
Loading…
Reference in a new issue