Skip to content

Commit

Permalink
Test failures fixes for ui/test_registration.py (#14001)
Browse files Browse the repository at this point in the history
UI test fixes
  • Loading branch information
shweta83 authored Apr 10, 2024
1 parent 807365a commit 00eb874
Show file tree
Hide file tree
Showing 2 changed files with 165 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 00eb874

Please sign in to comment.