Skip to content

Commit

Permalink
Fix virtwho UI cases failed for _GeneratorContextManager object has n…
Browse files Browse the repository at this point in the history
…o attribute virtwho_configure (#13981)

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

* pre-check

(cherry picked from commit 3ed6812)
  • Loading branch information
yanpliu authored and web-flow committed Feb 5, 2024
1 parent 46eb435 commit 417f354
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 417f354

Please sign in to comment.