Skip to content

Commit

Permalink
fix: remove unicodes non-needed in python3
Browse files Browse the repository at this point in the history
  • Loading branch information
rgonalo committed Nov 10, 2021
1 parent b5c3763 commit 5f86c46
Show file tree
Hide file tree
Showing 60 changed files with 91 additions and 94 deletions.
15 changes: 6 additions & 9 deletions docs/conf.py
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
u"""
"""
Copyright 2015 Telefónica Investigación y Desarrollo, S.A.U.
This file is part of Toolium.
Expand Down Expand Up @@ -70,8 +70,8 @@
master_doc = 'index'

# General information about the project.
project = u'Toolium'
copyright = u'2015-2021, Telefónica I+D'
project = 'Toolium'
copyright = '2015-2021, Telefónica I+D'

# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
Expand Down Expand Up @@ -224,8 +224,7 @@
# (source start file, target name, title,
# author, documentclass [howto, manual, or own class]).
latex_documents = [
('index', 'Toolium.tex', u'Toolium Documentation',
u'Rubén González Alonso, Telefónica I+D', 'manual'),
('index', 'Toolium.tex', 'Toolium Documentation', 'Rubén González Alonso, Telefónica I+D', 'manual'),
]

# The name of an image file (relative to this directory) to place at the top of
Expand Down Expand Up @@ -254,8 +253,7 @@
# One entry per manual page. List of tuples
# (source start file, name, description, authors, manual section).
man_pages = [
('index', 'Toolium', u'Toolium Documentation',
[u'Rubén González Alonso, Telefónica I+D'], 1)
('index', 'Toolium', 'Toolium Documentation', ['Rubén González Alonso, Telefónica I+D'], 1)
]

# If true, show URL addresses after external links.
Expand All @@ -268,8 +266,7 @@
# (source start file, target name, title, author,
# dir menu entry, description, category)
texinfo_documents = [
('index', 'Toolium', u'toolium Documentation',
u'Rubén González Alonso, Telefónica I+D', 'toolium',
('index', 'Toolium', 'toolium Documentation', 'Rubén González Alonso, Telefónica I+D', 'toolium',
'Wrapper tool of Selenium and Appium libraries to test web and mobile applications in a single project.',
'Miscellaneous'),
]
Expand Down
2 changes: 1 addition & 1 deletion setup.py
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
u"""
"""
Copyright 2015 Telefónica Investigación y Desarrollo, S.A.U.
This file is part of Toolium.
Expand Down
28 changes: 14 additions & 14 deletions toolium/behave/env_utils.py
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
u"""
"""
Copyright 2017 Telefónica Investigación y Desarrollo, S.A.U.
This file is part of Toolium.
Expand All @@ -22,15 +22,15 @@

# constants
# pre-actions in feature files
ACTIONS_BEFORE_FEATURE = u'actions before the feature'
ACTIONS_BEFORE_SCENARIO = u'actions before each scenario'
ACTIONS_AFTER_SCENARIO = u'actions after each scenario'
ACTIONS_AFTER_FEATURE = u'actions after the feature'
KEYWORDS = [u'Setup', u'Check', u'Given', u'When', u'Then', u'And', u'But'] # prefix in steps to actions
GIVEN_PREFIX = u'Given'
TABLE_SEPARATOR = u'|'
STEP_TEXT_SEPARATORS = [u'"""', u"'''"]
EMPTY = u''
ACTIONS_BEFORE_FEATURE = 'actions before the feature'
ACTIONS_BEFORE_SCENARIO = 'actions before each scenario'
ACTIONS_AFTER_SCENARIO = 'actions after each scenario'
ACTIONS_AFTER_FEATURE = 'actions after the feature'
KEYWORDS = ['Setup', 'Check', 'Given', 'When', 'Then', 'And', 'But'] # prefix in steps to actions
GIVEN_PREFIX = 'Given'
TABLE_SEPARATOR = '|'
STEP_TEXT_SEPARATORS = ['"""', "'''"]
EMPTY = ''

warnings.filterwarnings('ignore')

Expand Down Expand Up @@ -190,9 +190,9 @@ def __print_step_by_console(self, step):
print the step by console if the show variable is enabled
:param step: step text
"""
step_list = step.split(u'\n')
step_list = step.split('\n')
for s in step_list:
self.logger.by_console(u' %s' % repr(s).replace("u'", "").replace("'", ""))
self.logger.by_console(' %s' % repr(s).replace("u'", "").replace("'", ""))

def __execute_steps_by_action(self, context, action):
"""
Expand All @@ -213,8 +213,8 @@ def __execute_steps_by_action(self, context, action):
self.scenario_error = False
try:
self.__print_step_by_console(item)
context.execute_steps(u'''%s%s''' % (GIVEN_PREFIX, self.__remove_prefix(item)))
self.logger.debug(u'step defined in pre-actions: %s' % repr(item))
context.execute_steps('''%s%s''' % (GIVEN_PREFIX, self.__remove_prefix(item)))
self.logger.debug('step defined in pre-actions: %s' % repr(item))
except Exception as exc:
if action in [ACTIONS_BEFORE_FEATURE]:
self.feature_error = True
Expand Down
2 changes: 1 addition & 1 deletion toolium/behave/environment.py
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
u"""
"""
Copyright 2015 Telefónica Investigación y Desarrollo, S.A.U.
This file is part of Toolium.
Expand Down
2 changes: 1 addition & 1 deletion toolium/config_driver.py
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
u"""
"""
Copyright 2015 Telefónica Investigación y Desarrollo, S.A.U.
This file is part of Toolium.
Expand Down
2 changes: 1 addition & 1 deletion toolium/config_files.py
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
u"""
"""
Copyright 2015 Telefónica Investigación y Desarrollo, S.A.U.
This file is part of Toolium.
Expand Down
2 changes: 1 addition & 1 deletion toolium/config_parser.py
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
u"""
"""
Copyright 2015 Telefónica Investigación y Desarrollo, S.A.U.
This file is part of Toolium.
Expand Down
2 changes: 1 addition & 1 deletion toolium/driver_wrapper.py
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
u"""
"""
Copyright 2015 Telefónica Investigación y Desarrollo, S.A.U.
This file is part of Toolium.
Expand Down
2 changes: 1 addition & 1 deletion toolium/driver_wrappers_pool.py
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
u"""
"""
Copyright 2015 Telefónica Investigación y Desarrollo, S.A.U.
This file is part of Toolium.
Expand Down
2 changes: 1 addition & 1 deletion toolium/jira.py
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
u"""
"""
Copyright 2015 Telefónica Investigación y Desarrollo, S.A.U.
This file is part of Toolium.
Expand Down
2 changes: 1 addition & 1 deletion toolium/lettuce/terrain.py
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
u"""
"""
Copyright 2015 Telefónica Investigación y Desarrollo, S.A.U.
This file is part of Toolium.
Expand Down
2 changes: 1 addition & 1 deletion toolium/pageelements/__init__.py
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
u"""
"""
Copyright 2015 Telefónica Investigación y Desarrollo, S.A.U.
This file is part of Toolium.
Expand Down
2 changes: 1 addition & 1 deletion toolium/pageelements/button_page_element.py
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
u"""
"""
Copyright 2015 Telefónica Investigación y Desarrollo, S.A.U.
This file is part of Toolium.
Expand Down
2 changes: 1 addition & 1 deletion toolium/pageelements/checkbox_page_element.py
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
u"""
"""
Copyright 2015 Telefónica Investigación y Desarrollo, S.A.U.
This file is part of Toolium.
Expand Down
2 changes: 1 addition & 1 deletion toolium/pageelements/group_page_element.py
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
u"""
"""
Copyright 2016 Telefónica Investigación y Desarrollo, S.A.U.
This file is part of Toolium.
Expand Down
2 changes: 1 addition & 1 deletion toolium/pageelements/input_radio_page_element.py
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
u"""
"""
Copyright 2015 Telefónica Investigación y Desarrollo, S.A.U.
This file is part of Toolium.
Expand Down
2 changes: 1 addition & 1 deletion toolium/pageelements/input_text_page_element.py
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
u"""
"""
Copyright 2015 Telefónica Investigación y Desarrollo, S.A.U.
This file is part of Toolium.
Expand Down
2 changes: 1 addition & 1 deletion toolium/pageelements/link_page_element.py
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
u"""
"""
Copyright 2015 Telefónica Investigación y Desarrollo, S.A.U.
This file is part of Toolium.
Expand Down
2 changes: 1 addition & 1 deletion toolium/pageelements/page_element.py
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
u"""
"""
Copyright 2015 Telefónica Investigación y Desarrollo, S.A.U.
This file is part of Toolium.
Expand Down
2 changes: 1 addition & 1 deletion toolium/pageelements/page_elements.py
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
u"""
"""
Copyright 2015 Telefónica Investigación y Desarrollo, S.A.U.
This file is part of Toolium.
Expand Down
2 changes: 1 addition & 1 deletion toolium/pageelements/select_page_element.py
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
u"""
"""
Copyright 2015 Telefónica Investigación y Desarrollo, S.A.U.
This file is part of Toolium.
Expand Down
2 changes: 1 addition & 1 deletion toolium/pageelements/text_page_element.py
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
u"""
"""
Copyright 2015 Telefónica Investigación y Desarrollo, S.A.U.
This file is part of Toolium.
Expand Down
2 changes: 1 addition & 1 deletion toolium/pageobjects/common_object.py
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
u"""
"""
Copyright 2016 Telefónica Investigación y Desarrollo, S.A.U.
This file is part of Toolium.
Expand Down
2 changes: 1 addition & 1 deletion toolium/pageobjects/mobile_page_object.py
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
u"""
"""
Copyright 2016 Telefónica Investigación y Desarrollo, S.A.U.
This file is part of Toolium.
Expand Down
2 changes: 1 addition & 1 deletion toolium/pageobjects/page_object.py
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
u"""
"""
Copyright 2015 Telefónica Investigación y Desarrollo, S.A.U.
This file is part of Toolium.
Expand Down
2 changes: 1 addition & 1 deletion toolium/pytest_fixtures.py
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
u"""
"""
Copyright 2017 Telefónica Investigación y Desarrollo, S.A.U.
This file is part of Toolium.
Expand Down
8 changes: 4 additions & 4 deletions toolium/selenoid.py
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
u"""
"""
Copyright 2019 Telefónica Investigación y Desarrollo, S.A.U.
This file is part of Toolium.
Expand All @@ -25,9 +25,9 @@
# constants
STATUS_OK = 200
STATUS_PORT = '8888'
DOWNLOADS_PATH = u'downloads'
MP4_EXTENSION = u'mp4'
LOG_EXTENSION = u'log'
DOWNLOADS_PATH = 'downloads'
MP4_EXTENSION = 'mp4'
LOG_EXTENSION = 'log'


class Selenoid(object):
Expand Down
2 changes: 1 addition & 1 deletion toolium/test/behave/test_environment.py
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
u"""
"""
Copyright 2016 Telefónica Investigación y Desarrollo, S.A.U.
This file is part of Toolium.
Expand Down
2 changes: 1 addition & 1 deletion toolium/test/pageelements/test_derived_page_element.py
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
u"""
"""
Copyright 2015 Telefónica Investigación y Desarrollo, S.A.U.
This file is part of Toolium.
Expand Down
2 changes: 1 addition & 1 deletion toolium/test/pageelements/test_page_element.py
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
u"""
"""
Copyright 2015 Telefónica Investigación y Desarrollo, S.A.U.
This file is part of Toolium.
Expand Down
2 changes: 1 addition & 1 deletion toolium/test/pageelements/test_page_elements.py
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
u"""
"""
Copyright 2016 Telefónica Investigación y Desarrollo, S.A.U.
This file is part of Toolium.
Expand Down
2 changes: 1 addition & 1 deletion toolium/test/pageelements/test_page_elements_groups.py
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
u"""
"""
Copyright 2016 Telefónica Investigación y Desarrollo, S.A.U.
This file is part of Toolium.
Expand Down
2 changes: 1 addition & 1 deletion toolium/test/pageelements/test_page_nested_groups.py
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
u"""
"""
Copyright 2017 Telefónica Investigación y Desarrollo, S.A.U.
This file is part of Toolium.
Expand Down
2 changes: 1 addition & 1 deletion toolium/test/pageobjects/examples/android/login.py
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
u"""
"""
Copyright 2016 Telefónica Investigación y Desarrollo, S.A.U.
This file is part of Toolium.
Expand Down
2 changes: 1 addition & 1 deletion toolium/test/pageobjects/examples/base/login.py
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
u"""
"""
Copyright 2016 Telefónica Investigación y Desarrollo, S.A.U.
This file is part of Toolium.
Expand Down
2 changes: 1 addition & 1 deletion toolium/test/pageobjects/examples/ios/login.py
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
u"""
"""
Copyright 2016 Telefónica Investigación y Desarrollo, S.A.U.
This file is part of Toolium.
Expand Down
2 changes: 1 addition & 1 deletion toolium/test/pageobjects/examples/login_one_file.py
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
u"""
"""
Copyright 2016 Telefónica Investigación y Desarrollo, S.A.U.
This file is part of Toolium.
Expand Down
2 changes: 1 addition & 1 deletion toolium/test/pageobjects/test_mobile_page_object.py
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
u"""
"""
Copyright 2016 Telefónica Investigación y Desarrollo, S.A.U.
This file is part of Toolium.
Expand Down
2 changes: 1 addition & 1 deletion toolium/test/pageobjects/test_page_object.py
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
u"""
"""
Copyright 2015 Telefónica Investigación y Desarrollo, S.A.U.
This file is part of Toolium.
Expand Down
2 changes: 1 addition & 1 deletion toolium/test/test_config_driver.py
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
u"""
"""
Copyright 2016 Telefónica Investigación y Desarrollo, S.A.U.
This file is part of Toolium.
Expand Down
2 changes: 1 addition & 1 deletion toolium/test/test_config_files.py
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
u"""
"""
Copyright 2015 Telefónica Investigación y Desarrollo, S.A.U.
This file is part of Toolium.
Expand Down
2 changes: 1 addition & 1 deletion toolium/test/test_config_parser.py
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
u"""
"""
Copyright 2015 Telefónica Investigación y Desarrollo, S.A.U.
This file is part of Toolium.
Expand Down

0 comments on commit 5f86c46

Please sign in to comment.