Skip to content

Commit 25d2107

Browse files
Address comments
1 parent 9f724d7 commit 25d2107

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

tests/foreman/ui/test_host.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,11 @@
2929
from robottelo.config import settings
3030
from robottelo.constants import (
3131
ANY_CONTEXT,
32+
ANY_LOCATION,
3233
DEFAULT_ARCHITECTURE,
3334
DEFAULT_CV,
3435
DEFAULT_LOC,
36+
DEFAULT_ORG,
3537
ENVIRONMENT,
3638
FAKE_1_CUSTOM_PACKAGE,
3739
FAKE_7_CUSTOM_PACKAGE,
@@ -4251,8 +4253,7 @@ def test_assign_different_cv_from_same_env(
42514253

42524254

42534255
def test_positive_only_single_library_option_in_create_form(target_sat):
4254-
"""
4255-
Ensure that only 1 Library option is displayed in the Create Host form
4256+
"""Ensure that only 1 Library option is displayed in the Create Host form
42564257
when location is set to "Any location"
42574258
42584259
:id: 559f6324-dc17-4274-99f5-957ef0a2faf0
@@ -4269,8 +4270,8 @@ def test_positive_only_single_library_option_in_create_form(target_sat):
42694270
:customerscenario: true
42704271
"""
42714272
with target_sat.ui_session() as session:
4272-
session.organization.select(org_name='Default Organization')
4273-
session.location.select(loc_name='Any location')
4273+
session.organization.select(org_name=DEFAULT_ORG)
4274+
session.location.select(loc_name=ANY_LOCATION)
42744275
create_form = session.host.get_create_form()
42754276
create_form.host.lce.open_filter.click()
42764277
# Check that 'Library' appears just once

0 commit comments

Comments
 (0)