Skip to content

Commit

Permalink
Added TC for MTA-483---Analysis should run on source mode only
Browse files Browse the repository at this point in the history
  • Loading branch information
midays committed Mar 17, 2024
1 parent 08cd346 commit 77aabb4
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions src/tests/vscode/test_mta_483_source_mode_option_disabled.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import pytest

from src.models.configuration.configurations_object import ConfigurationsObject


@pytest.mark.parametrize("app_name", ["source mode option"])
@pytest.mark.parametrize(
"analysis_data",
[
{
"cancel analysis": {"options": {"target": ["eap8"]}},
},
],
)
@pytest.mark.parametrize("ide", ["vscode"])
@pytest.mark.vscode
def test_delete_configuration(setup_vscode, configurations, app_name, analysis_data, ide):
# Automates Polarion MTA-483

vscode = setup_vscode
vscode.set_focus()
vscode.refresh_configuration()
model_file_path = vscode.get_model_file_path()
configurations_object = ConfigurationsObject()
conf_object = configurations_object.get_model_object(model_file_path)
assert str(conf_object.configurations[0].options.source_mode) == str(True)
assert conf_object.configurations[0].options.mode == "source-only"

0 comments on commit 77aabb4

Please sign in to comment.