Skip to content

test

Functions:

client async

client(engine: AsyncEngine)

Create a test client for the Labox server.

test_get_content_data_not_found async

test_get_content_data_not_found(client: LitestarClient)

Test streaming data from a non-existent content record returns 404.

test_get_content_data_success async

test_get_content_data_success(
    session: AsyncSession, client: LitestarClient
)

Test streaming the actual data from a content record.

test_get_content_not_found async

test_get_content_not_found(client: LitestarClient)

Test getting a non-existent content record returns 404.

test_get_content_success async

test_get_content_success(
    session: AsyncSession, client: LitestarClient
)

Test getting a content record by ID.

test_get_manifest_not_found async

test_get_manifest_not_found(client: LitestarClient)

Test getting a non-existent manifest returns 404.

test_get_manifest_success async

test_get_manifest_success(
    session: AsyncSession, client: LitestarClient
)

Test getting a manifest by ID.

test_list_contents_empty async

test_list_contents_empty(client: LitestarClient)

Test listing contents when database is empty.

test_list_contents_filtered_by_manifest async

test_list_contents_filtered_by_manifest(
    session: AsyncSession, client: LitestarClient
)

Test filtering contents by manifest_id.

test_list_contents_with_data async

test_list_contents_with_data(
    session: AsyncSession, client: LitestarClient
)

Test listing contents with data in the database.

test_list_contents_with_pagination async

test_list_contents_with_pagination(
    session: AsyncSession, client: LitestarClient
)

Test listing contents with pagination parameters.