Test import module that doesn't exist
Maintainers usually reply within 1 day
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 66/100
Research direction
The failing test is test_interactions_default_timeout in google/genai/tests/interactions/test_integration.py, which imports a nonexistent _interactions module. Start by searching the package for _interactions and DEFAULT_TIMEOUT, and look at the commit b006b4bb that added the test. Run pytest google/genai/tests/interactions to reproduce the import error. Done when the test either no longer errors or is removed or rewritten to match the code that exists, and the suite collects cleanly. Confirm the intended behaviour with maintainers first.
Written by the indexing model from the issue text.
Description
This test from google/genai/tests/interactions/test_integration.py file will fail:
def test_interactions_default_timeout():
from ... import _interactions
assert _interactions.DEFAULT_TIMEOUT == httpx.Timeout(
timeout=None, connect=5.0
)
This test added by this commit, try to import _interactions module that doesn't exist in all the source, even it assume that it has DEFAULT_TIMEOUT property that doesn't exist in any module.
Environment details
- Programming language: Python
- OS: Arch Linux
- Language runtime version: 3.14
- Package version: 2.30.1
Steps to reproduce
- Clone the repository
- Run
pytest google/genai/tests
Making sure to follow these steps will guarantee the quickest resolution possible.
Thanks!
- Dominant language
- Python
- Stars
- 4.1k
- Forks
- 1.1k
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 90
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from googleapis/python-genai
-
Interactions retries ignore the documented `initial_delay` and `max_delay` defaultsPossibly taken @Venkaiahbabuneelam claimed this 4 days ago. Openpriority: p2 status:awaiting user response type: bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
googleapis/python-genai#3317 · 1 comment · 1 assignee ·
Maintainers usually reply within 1 day
-
Curated history keeps half a user turn when the model turn is invalidPossibly taken @Venkaiahbabuneelam claimed this 39 days ago. Openpriority: p2 type: bug
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
googleapis/python-genai#3051 · 3 comments · 1 assignee ·
Maintainers usually reply within 1 day
-
[Bug]: Unsubscripted typing.List and typing.Dict crash convert_if_exist_pydantic_model in AFCPossibly taken @Venkaiahbabuneelam claimed this 39 days ago. Openpriority: p2 type: bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
googleapis/python-genai#3044 · 1 comment · 1 assignee ·
Maintainers usually reply within 1 day
-
Structured-output continuation merge raises AttributeError: __pydantic_generic_metadata__ when a hop has parsed JSONPossibly taken @Venkaiahbabuneelam claimed this 3 days ago. Openpriority: p2 type: bug
googleapis/python-genai#3350 · 1 comment · 1 assignee ·
Maintainers usually reply within 1 day
-
Automatic function calling rejects `datetime` and `UUID` argumentsPossibly taken @Venkaiahbabuneelam claimed this 3 days ago. Openpriority: p2 type: bug
Difficulty 3/5 1-2 days Newbie friendliness 75/100
googleapis/python-genai#3331 · 1 comment · 1 assignee ·
Maintainers usually reply within 1 day
All issues in googleapis/python-genai
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
dbt-labs/spark-utils#51 ·
-
bug pydanty:is-working
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
pydantic/pydantic-ai#13444 ·
Maintainers usually reply within 1 day
-
good first issue help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
good first issue help wanted
Difficulty 1/5 Under an hour Newbie friendliness 72/100
-
changelog investigate
Difficulty 1/5 Under an hour Newbie friendliness 68/100
ramnes/notion-sdk-py#502 ·