[refactor] Add MockClient implementation for unit testing#185
Open
AnshulPatil2005 wants to merge 3 commits intoExtralit:developfrom
Open
[refactor] Add MockClient implementation for unit testing#185AnshulPatil2005 wants to merge 3 commits intoExtralit:developfrom
AnshulPatil2005 wants to merge 3 commits intoExtralit:developfrom
Conversation
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.
PR Title format: [refactor] Add MockClient implementation for unit testing
Description
This PR adds a MockClient implementation that simulates the Extralit API behavior without external dependencies
Related Tickets & Documents
Closes #178
What type of PR is this? (check all applicable)
Steps to QA
run tests
test_get_resources - Verify resource retrieval by name and id
test_get_resources_warnings - Verify warnings when resources not found
test_get_resource_with_missing_args - Verify errors when required args missing
test_init_with_missing_api_url - Verify error when api_url is missing
test_init_with_missing_api_key - Verify error when api_key is missing
test_workspace_create_and_list - Verify workspace CRUD operations
test_user_create_and_list - Verify user CRUD operations
test_dataset_create_and_list - Verify dataset CRUD operations
test_workspace_default - Verify default workspace retrieval
test_workspace_default_no_workspaces - Verify error when no workspaces exist
test_me_property - Verify current user property
test_resource_deletion - Verify resource deletion
test_both_name_and_id_uses_id - Verify id takes precedence over name
Added/updated tests?
have not been included
Added/updated documentations?
Checklist