-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Quantum] Show required parameters in CLI Reference documentation (#5130
) * Flag required params in workspace commands * Fix azdev style violations * Restore _params.py * Apply configured_default to workspace_name_type * Delete required=False on workspace_name_type * Show more parameters as Required * Show job parameters as Required * Show target parameters as Required * Fix output of az quantum target show * Delete commented-out lines * Go back to using show_command for job and target * Add required parameters in help examples * Delete help example and trailing whitespace * Add test_job_errors * Add unit tests * Delete unused imports and commented-out code * Delete more unused imports and commented-out code * Empty commit to trigger CI/CD check pipeline (like /azp run) * Remove capsys from tests * Ensure test failure if command with missing parameters doesn’t fail * Add comment about TODO in utils.py * Revise the 'az quantum target show' error message * Restore version number to 0.16.0 * Correct 'az quantum workspace delete' help example * Modify help example to pass CLI Linter check * Add note to help example for consistency with related example
- Loading branch information
Warren Jones
authored
Oct 12, 2022
1 parent
d283ac4
commit a9d7efa
Showing
13 changed files
with
135 additions
and
62 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
21 changes: 21 additions & 0 deletions
21
src/quantum/azext_quantum/tests/latest/test_quantum_offerings.py
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# -------------------------------------------------------------------------------------------- | ||
# Copyright (c) Microsoft Corporation. All rights reserved. | ||
# Licensed under the MIT License. See License.txt in the project root for license information. | ||
# -------------------------------------------------------------------------------------------- | ||
|
||
import pytest | ||
|
||
from azure.cli.testsdk import ScenarioTest | ||
from .utils import issue_cmd_with_param_missing | ||
|
||
|
||
class QuantumOfferingsScenarioTest(ScenarioTest): | ||
|
||
# @pytest.fixture(autouse=True) | ||
# def _pass_fixtures(self, capsys): | ||
# self.capsys = capsys | ||
# # See "TODO" in issue_cmd_with_param_missing un utils.py | ||
|
||
def test_offerings_errors(self): | ||
issue_cmd_with_param_missing(self, "az quantum offerings accept-terms", "az quantum offerings accept-terms -p MyProviderId -k MySKU -l MyLocation\nOnce terms have been reviewed, accept the invoking this command.") | ||
issue_cmd_with_param_missing(self, "az quantum offerings show-terms", "az quantum offerings show-terms -p MyProviderId -k MySKU -l MyLocation\nUse a Provider Id and SKU from `az quantum offerings list` to review the terms.") |
Oops, something went wrong.