Skip to content

Unit tests failing - test_research_task_live: 'ResearchClient' object has no attribute 'create_task' #118

Description

@SecretiveShell

Hi, I recently ran the unit tests in this repository, but one of them is failing.

@pytest.mark.skipif(not _have_real_key(), reason="EXA_API_KEY not provided")
    def test_research_task_live():
        exa = Exa(API_KEY)
        schema = {
            "type": "object",
            "properties": {"answer": {"type": "string"}},
            "required": ["answer"],
        }
>       resp = exa.research.create_task(
               ^^^^^^^^^^^^^^^^^^^^^^^^
            instructions="What is the capital of Minnesota?", output_schema=schema
        )
E       AttributeError: 'ResearchClient' object has no attribute 'create_task'

Unrelated but I also had to change the test path since pytest was searching in the exa_py source folder and not the root level and failed to discover the tests at all.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions