Add unit tests for PR features #160-164#168
Open
devin-ai-integration[bot] wants to merge 12 commits into
Open
Conversation
Co-Authored-By: ishan@exa.ai <ishan@exa.ai>
Co-Authored-By: ishan@exa.ai <ishan@exa.ai>
Co-Authored-By: ishan@exa.ai <ishan@exa.ai>
…ent parameter Co-Authored-By: ishan@exa.ai <ishan@exa.ai>
…) methods Co-Authored-By: ishan@exa.ai <ishan@exa.ai>
Co-Authored-By: ishan@exa.ai <ishan@exa.ai>
…helpers' into test-all-prs
…-status-enum' into test-all-prs
…ream-answer-user-location' into test-all-prs
…-constructor-fix' into test-all-prs
…sponse-cost-dollars' into test-all-prs
Co-Authored-By: ishan@exa.ai <ishan@exa.ai>
Contributor
Author
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds unit tests for features introduced in PRs #160-164:
list_all()andget_all()pagination helper methods exist on monitors, imports, and events clients (sync and async)MonitorRunStatus.failedenum value exists and works correctlyAsyncExa.stream_answer()acceptsuser_locationparameterAsyncExaacceptsbase_urlanduser_agentparametersAnswerResponse.cost_dollarsfield is parsed from API responsesReview & Testing Checklist for Human
cost_dollarsparsing test correctly mocks the API response formatpytest tests/unit/test_pr_features.py -vlocally to verify all 31 tests passNotes
test_websets_monitors.pyandtest_search_api.pyLink to Devin run: https://app.devin.ai/sessions/25b69158cfaa4658bf119248c7c8f05c
Requested by: adriano@exa.ai