From b1cc733141c187416dc7fd37347dae27dad12470 Mon Sep 17 00:00:00 2001 From: Peter Ondrejka Date: Wed, 31 Jan 2024 17:45:34 +0100 Subject: [PATCH] fix in ui_host fixture (#13962) (cherry picked from commit 3fd30604a3c75a122e96fee59489c8c59e35c804) --- pytest_fixtures/core/ui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pytest_fixtures/core/ui.py b/pytest_fixtures/core/ui.py index 81dbbaa6e8e..c266e363c7e 100644 --- a/pytest_fixtures/core/ui.py +++ b/pytest_fixtures/core/ui.py @@ -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,