feat(generation): score articles with selected relevance model (#48)
This commit is contained in:
@ -25,6 +25,7 @@ func TestPreferencesEndpointsExistAndRejectInvalidValues(t *testing.T) {
|
||||
want int
|
||||
}{
|
||||
{http.MethodGet, "", http.StatusOK},
|
||||
{http.MethodPut, `{"language":"fr","ranking_mode":"title","ranking_model_id":"not-a-uuid"}`, http.StatusBadRequest},
|
||||
{http.MethodPut, `{"language":"de","ranking_mode":"title"}`, http.StatusBadRequest},
|
||||
{http.MethodPut, `{"language":"fr","ranking_mode":"unknown"}`, http.StatusBadRequest},
|
||||
} {
|
||||
|
||||
Reference in New Issue
Block a user