Skip to content

Commit

Permalink
use revision from pytestconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
dipinknair committed Oct 17, 2024
1 parent 3ff5da0 commit 304db08
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,10 +335,10 @@ def test_ideconfig_cli_workspace_settings(capfd):

@pytest.mark.cli
@pytest.mark.python_env
def test_ideconfig_venv(test_env, run_subprocess, rootdir):
def test_ideconfig_venv(test_env, run_subprocess, rootdir, pytestconfig):
"""Test the IDE configuration location when a virtual environment is active."""
# Set the revision number
revision = 242
revision = pytestconfig.getoption("ansys_version")

# Install pymechanical
subprocess.check_call(
Expand Down Expand Up @@ -372,7 +372,7 @@ def test_ideconfig_venv(test_env, run_subprocess, rootdir):
def test_ideconfig_default(test_env, run_subprocess, rootdir, pytestconfig):
"""Test the IDE configuration location when no arguments are supplied."""
# Get the revision number
revision = 242
revision = pytestconfig.getoption("ansys_version")
# Set part of the settings.json path
settings_json_fragment = Path("Code") / "User" / "settings.json"

Expand Down

0 comments on commit 304db08

Please sign in to comment.