Skip to content

Add sync-path tests for models.search / images.generate / admin.health / admin.providers.list #12

Description

@MitulShah1

Several resources are currently tested only on the async path; their sync equivalents have no direct test.

Method Async test (exists) Sync test
models.search() test_models_search_is_awaitable
images.generate() test_images_generate_is_awaitable
admin.health() test_admin_health_is_awaitable
admin.providers.list() test_admin_providers_list_is_awaitable

What to do

Add a sync test for each (mock the endpoint, assert the parsed result). See TestModels.test_list and TestAdminKeys.test_list_keys for the pattern.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions