Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enhance GenericRequest test coverage #171

Closed
wants to merge 2 commits into from

Conversation

lavishsaluja
Copy link
Contributor

@lavishsaluja lavishsaluja commented Nov 22, 2024

for more test suites.

Added test cases to verify flexible message and response format handling for GenericRequest class

  • Verify support for non-string message content (dict, number, list)
  • Test empty and complex nested response format structures
  • Validate state isolation and data immutability

commands after activating a virtual env with all packages installed and python3.11

to run the tests for generic request class
python -m pytest src/bespokelabs/curator/tests/test_generic_request.py -v

use this for a specific function
python -m pytest src/bespokelabs/curator/tests/test_generic_request.py::test_generic_request_with_non_string_messages -v

Add test cases to verify flexible message and response format handling:
- Verify support for non-string message content (dict, number, list)
- Test empty and complex nested response format structures
- Validate state isolation and data immutability
@CharlieJCJ CharlieJCJ marked this pull request as draft November 23, 2024 19:44
@lavishsaluja lavishsaluja changed the title WIP: enhance GenericRequest test coverage enhance GenericRequest test coverage Nov 26, 2024
@RyanMarten RyanMarten closed this Jan 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants