Skip to content

Commit

Permalink
UI test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
shweta83 committed Apr 9, 2024
1 parent ce6777c commit 9772a27
Show file tree
Hide file tree
Showing 2 changed files with 166 additions and 81 deletions.
10 changes: 10 additions & 0 deletions pytest_fixtures/component/activationkey.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,16 @@ def module_activation_key(module_sca_manifest_org, module_target_sat):
).create()


@pytest.fixture
def function_activation_key(function_sca_manifest_org, target_sat):
"""Create activation key using default CV and library environment."""
return target_sat.api.ActivationKey(
content_view=function_sca_manifest_org.default_content_view.id,
environment=function_sca_manifest_org.library.id,
organization=function_sca_manifest_org,
).create()


@pytest.fixture(scope='module')
def module_ak(module_lce, module_org, module_target_sat):
return module_target_sat.api.ActivationKey(
Expand Down
Loading

0 comments on commit 9772a27

Please sign in to comment.