Skip to content

Integrate mock for mgmt client into mock framework - #710

Merged
Scott Carda (ScottCarda-MS) merged 5 commits into
microsoft:sccarda/MockServiceFrameworkfrom
rigidit:users/rigidit/MockServiceFramework
Jan 7, 2026
Merged

Scott Carda (ScottCarda-MS) merged 5 commits into
microsoft:sccarda/MockServiceFrameworkfrom
rigidit:users/rigidit/MockServiceFramework

Conversation

@rigidit

@rigidit Zulfat Nutfullin (rigidit) commented Jan 6, 2026 •

Copy link
Copy Markdown
Member

Recently we introduced one more dependency for Workspace initialization - _mgmt_client , so this PR integrates that dependency into new mock framework.

Also contains some tests updates for workspace, adapting test_mgmt_client and test_workspace_connection_params_validation tests, and some tests for job statuses that were added recently.

@rigidit
Zulfat Nutfullin (rigidit) marked this pull request as ready for review January 7, 2026 01:10
@rigidit
Zulfat Nutfullin (rigidit) requested a review from a team as a code owner January 7, 2026 01:10
Comment thread azure-quantum/tests/unit/local/test_workspace.py
@ScottCarda-MS
Scott Carda (ScottCarda-MS) merged commit 91a23dd into microsoft:sccarda/MockServiceFramework Jan 7, 2026
1 check passed
Scott Carda (ScottCarda-MS) added a commit that referenced this pull request Jan 9, 2026
* initial mock workspace

* added pagination tests

* expanded filter tests in pagination

* reorganize, pagination is in a good state

* renamed and cleaned up some of the tests

* added test_session.py

* migrated test_job_results.py

* use plain tests in test_job_results.py instead of test class

* rename folder from "mock" to "local"

* added file headers

* remove unused imports

* Integrate mock for mgmt client into mock framework (#710)

* Integrate mock for mgmt client into mock framework

* Update tests for workspace

* Update params for default workspace

* Adapt test_mgmt_client and test_workspace_connection_params_validation

* Add tests for job completed, failed and cancelled statuses

* fix spacing in CI file

* try starting over

* fix test_job_results.py

* Add local unit tests to pipeline

* Updated mock to use WorkspaceClient instead of ServiceClient

---------

Co-authored-by: Zulfat Nutfullin <rigidit@users.noreply.github.com>
Co-authored-by: kikomiss <144282031+kikomiss@users.noreply.github.com>
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