Skip to content

Commit

Permalink
chore: adding changelog file 952.fixed.md [dependabot-skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
pyansys-ci-bot authored and dipinknair committed Oct 17, 2024
1 parent 304db08 commit 4e8b3f0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions doc/changelog.d/952.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
subs_cli test
11 changes: 6 additions & 5 deletions tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,8 +271,9 @@ def get_stubs_location(revision: int) -> Path:


@pytest.mark.cli
def test_ideconfig_cli_ide_exception(capfd):
def test_ideconfig_cli_ide_exception(capfd, pytestconfig):
"""Test IDE configuration raises an exception for anything but vscode."""
revision = pytestconfig.getoption("ansys_version")
with pytest.raises(Exception):
ideconfig_cli_impl(
ide="pycharm",
Expand All @@ -282,10 +283,10 @@ def test_ideconfig_cli_ide_exception(capfd):


@pytest.mark.cli
def test_ideconfig_cli_user_settings(capfd):
def test_ideconfig_cli_user_settings(capfd, pytestconfig):
"""Test the IDE configuration prints correct information for user settings."""
# Set the revision number
revision = 242
revision = pytestconfig.getoption("ansys_version")

# Run the IDE configuration command for the user settings type
ideconfig_cli_impl(
Expand All @@ -307,10 +308,10 @@ def test_ideconfig_cli_user_settings(capfd):


@pytest.mark.cli
def test_ideconfig_cli_workspace_settings(capfd):
def test_ideconfig_cli_workspace_settings(capfd, pytestconfig):
"""Test the IDE configuration prints correct information for workplace settings."""
# Set the revision number
revision = 241
revision = pytestconfig.getoption("ansys_version")

# Run the IDE configuration command
ideconfig_cli_impl(
Expand Down

0 comments on commit 4e8b3f0

Please sign in to comment.