Skip to content

Commit

Permalink
[6.14.z] Fix virtwho UI cases failed for _GeneratorContextManager obj…
Browse files Browse the repository at this point in the history
…ect has no attribute virtwho_configure (#13984)

Fix virtwho UI cases failed for _GeneratorContextManager object has no attribute virtwho_configure (#13981)

* Fix virtwho UI cases failed for _GeneratorContextManager object has no attribute virtwho_configure

* pre-check

(cherry picked from commit 3ed6812)

Co-authored-by: yanpliu <[email protected]>
  • Loading branch information
Satellite-QE and yanpliu authored Feb 5, 2024
1 parent 46eb435 commit 79a723c
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions tests/foreman/virtwho/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,10 @@ def test_foo(session):
# your ui test steps here
session.architecture.create({'name': 'bar'})
"""
return module_target_sat.ui_session(test_name, module_user.login, module_user.password)
with module_target_sat.ui_session(
test_name, module_user.login, module_user.password
) as session:
return session


@pytest.fixture(scope='module')
Expand Down Expand Up @@ -96,4 +99,7 @@ def test_foo(session):
# your ui test steps here
session.architecture.create({'name': 'bar'})
"""
return module_target_sat.ui_session(test_name, module_user_sca.login, module_user_sca.password)
with module_target_sat.ui_session(
test_name, module_user_sca.login, module_user_sca.password
) as session_sca:
return session_sca

0 comments on commit 79a723c

Please sign in to comment.