Skip to content

Commit

Permalink
fix in ui_host fixture (#13962)
Browse files Browse the repository at this point in the history
(cherry picked from commit 3fd3060)
  • Loading branch information
pondrejk authored and web-flow committed Jan 31, 2024
1 parent 652d150 commit b1cc733
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytest_fixtures/core/ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def ui_user(request, module_org, module_location, module_target_sat):
test_module_name = request.module.__name__.split('.')[-1].split('_', 1)[-1]
login = f"{test_module_name}_{gen_string('alphanumeric')}"
password = gen_string('alphanumeric')
admin = request.param.get('admin', True)
admin = request.param.get('admin', True) if hasattr(request, 'param') else True
logger.debug('Creating session user %r', login)
user = module_target_sat.api.User(
admin=admin,
Expand Down

0 comments on commit b1cc733

Please sign in to comment.