overseerrtest

package
v0.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 5, 2026 License: AGPL-3.0 Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package overseerrtest is a pretend Overseerr for tests: just enough of its v1 API for what Matinee calls.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fake

type Fake struct {
	Key string
	URL string

	// Users are Overseerr's accounts; the first owns the API key.
	Users []map[string]any
	// Catalog is every title Overseerr knows, as its API returns them
	// (id, mediaType, title or name, …), with "seasons" for shows.
	Catalog []map[string]any
	// Lists maps a list's path, like "/discover/trending" or
	// "/movie/27205/recommendations", to the ids of the titles on it.
	Lists map[string][]int
	// Requests are what was asked for: mediaType, mediaId, seasons, userId.
	Requests []map[string]any
	// Searches are the raw query strings searches came with.
	Searches []string
	// PageSize splits lists into pages of this many titles; 0 is one page.
	PageSize int
	// AutoApprove lists the users whose requests Overseerr approves.
	AutoApprove map[int]bool
	// contains filtered or unexported fields
}

func New

func New(t *testing.T) *Fake

func (*Fake) SetPageSize

func (f *Fake) SetPageSize(n int)

SetPageSize sets PageSize while the fake is serving.

func (*Fake) SetStatus

func (f *Fake) SetStatus(id, status int)

SetStatus sets where Overseerr has a title (see overseerr.Status…).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL