aboutsummaryrefslogtreecommitdiffstats
path: root/tests/uiTests/test_admin_dropdown.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/uiTests/test_admin_dropdown.py')
-rw-r--r--tests/uiTests/test_admin_dropdown.py34
1 files changed, 21 insertions, 13 deletions
diff --git a/tests/uiTests/test_admin_dropdown.py b/tests/uiTests/test_admin_dropdown.py
index 25621f4..8b838d6 100644
--- a/tests/uiTests/test_admin_dropdown.py
+++ b/tests/uiTests/test_admin_dropdown.py
@@ -1,5 +1,4 @@
-
-# ============LICENSE_START==========================================
+# ============LICENSE_START==========================================
# org.onap.vvp/test-engine
# ===================================================================
# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
@@ -41,7 +40,6 @@ from django.conf import settings
from iceci.decorator.exception_decor import exception
from services.constants import Constants
from services.logging_service import LoggingServiceFactory
-from services.session import session
from services.types import API, DB, Frontend
from tests.uiTests.test_ui_base import TestUiBase
@@ -70,9 +68,11 @@ class TestAdminDropdown(TestUiBase):
# the engagement we are able to archive the engagement)
path_with_namespace = user_content[
'engagement_manual_id'] + "%2F" + user_content['vfName']
- if not API.GitLab.validate_git_project_members(path_with_namespace, user_content['email']):
+ if not API.GitLab.validate_git_project_members(
+ path_with_namespace, user_content['email']):
raise Exception(
- "Couldn't find the engagement lead user (%s) in GitLab." % user_content['email'])
+ "Couldn't find the engagement lead user (%s) in GitLab." %
+ user_content['email'])
Frontend.Dashboard.statuses_search_vf(
user_content['engagement_manual_id'], user_content['vfName'])
Frontend.Overview.click_on_archeive_engagement_from_dropdown()
@@ -103,7 +103,8 @@ class TestAdminDropdown(TestUiBase):
other_user = DB.User.select_el_not_in_engagement(
self.user_content['el_name'], self.user_content['pr_name'])
Frontend.Dashboard.statuses_search_vf(
- self.user_content['engagement_manual_id'], self.user_content['vfName'])
+ self.user_content['engagement_manual_id'],
+ self.user_content['vfName'])
Frontend.Overview.click_on_change_peer_reviewer_from_dropdown()
Frontend.Overview.change_engagement_lead_modal(
other_user, is_reviewer=False)
@@ -115,7 +116,8 @@ class TestAdminDropdown(TestUiBase):
Frontend.User.login(
Constants.Users.Admin.EMAIL, Constants.Default.Password.TEXT)
Frontend.Dashboard.statuses_search_vf(
- self.user_content['engagement_manual_id'], self.user_content['vfName'])
+ self.user_content['engagement_manual_id'],
+ self.user_content['vfName'])
Frontend.Overview.click_on_update_status_from_dropdown()
Frontend.Overview.fill_update_status_form_admin_dropdown()
@@ -124,7 +126,8 @@ class TestAdminDropdown(TestUiBase):
Frontend.User.login(
self.user_content['el_email'], Constants.Default.Password.TEXT)
Frontend.Dashboard.statuses_search_vf(
- self.user_content['engagement_manual_id'], self.user_content['vfName'])
+ self.user_content['engagement_manual_id'],
+ self.user_content['vfName'])
Frontend.Overview.click_on_update_status_from_dropdown()
Frontend.Overview.fill_update_status_form_admin_dropdown()
@@ -148,7 +151,8 @@ class TestAdminDropdown(TestUiBase):
self.user_content['el_name'], self.user_content['pr_name'])
other_el_email = DB.User.get_email_by_full_name(other_el)
Frontend.Dashboard.statuses_search_vf(
- self.user_content['engagement_manual_id'], self.user_content['vfName'])
+ self.user_content['engagement_manual_id'],
+ self.user_content['vfName'])
engName = self.user_content[
'engagement_manual_id'] + ": " + self.user_content['vfName']
vf_left_nav_id = "clickable-" + engName
@@ -157,8 +161,10 @@ class TestAdminDropdown(TestUiBase):
Frontend.General.re_open(Constants.Default.LoginURL.TEXT)
Frontend.Overview.invite_and_reopen_link(
self.user_content, other_el_email)
- Frontend.User.login(other_el_email, Constants.Default.Password.TEXT,
- Constants.Dashboard.Default.DASHBOARD_ID)
+ Frontend.User.login(
+ other_el_email,
+ Constants.Default.Password.TEXT,
+ Constants.Dashboard.Default.DASHBOARD_ID)
Frontend.Overview.click_on_update_status_from_dropdown()
Frontend.Overview.fill_update_status_form_admin_dropdown()
finally:
@@ -174,9 +180,11 @@ class TestAdminDropdown(TestUiBase):
user_content, Constants.EngagementStages.ACTIVE)
path_with_namespace = user_content[
'engagement_manual_id'] + "%2F" + user_content['vfName']
- if not API.GitLab.validate_git_project_members(path_with_namespace, user_content['email']):
+ if not API.GitLab.validate_git_project_members(
+ path_with_namespace, user_content['email']):
raise Exception(
- "Couldn't find the inviter user (%s) in GitLab." % user_content['email'])
+ "Couldn't find the inviter user (%s) in GitLab." %
+ user_content['email'])
if settings.DATABASE_TYPE != 'local':
git_user = API.GitLab.get_git_user(user_content['email'])
git_user_id = str(git_user['id'])