Browse files

Pep8 fixes for all the *.py files

  • Loading branch information...
1 parent a42409f commit 49d9d2cc9e7d0c8b1d6cfb78e9f6bf51dc90cefb alintrif committed Jul 19, 2012
View
1 conftest.py
@@ -4,6 +4,7 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
def pytest_funcarg__mozwebqa_logged_in(request):
mozwebqa = request.getfuncargvalue('mozwebqa')
View
1 pages/base_page.py
@@ -11,7 +11,6 @@
class MozTrapBasePage(Page):
-
@property
def header(self):
return self.Header(self.testsetup)
View
3 pages/create_case_page.py
@@ -4,9 +4,10 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+from datetime import datetime
+
from selenium.webdriver.common.by import By
from selenium.webdriver.support.select import Select
-from datetime import datetime
from pages.base_page import MozTrapBasePage
View
1 pages/create_product_page.py
@@ -5,6 +5,7 @@
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
from datetime import datetime
+
from selenium.webdriver.common.by import By
from selenium.webdriver.support.select import Select
View
4 pages/create_profile_page.py
@@ -4,11 +4,11 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
-from selenium.webdriver.common.by import By
+from datetime import datetime
+from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.common.keys import Keys
-from datetime import datetime
from base_page import MozTrapBasePage
View
1 pages/create_run_page.py
@@ -5,6 +5,7 @@
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
from datetime import datetime
+
from selenium.webdriver.common.by import By
from selenium.webdriver.support.select import Select
View
2 pages/create_suite_page.py
@@ -5,11 +5,13 @@
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
from datetime import datetime
+
from selenium.webdriver.common.by import By
from selenium.webdriver.support.select import Select
from pages.base_page import MozTrapBasePage
+
class MozTrapCreateSuitePage(MozTrapBasePage):
_page_title = 'MozTrap'
View
3 pages/create_version_page.py
@@ -5,6 +5,7 @@
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
from datetime import datetime
+
from selenium.webdriver.common.by import By
from selenium.webdriver.support.select import Select
@@ -33,7 +34,7 @@ def create_version(self, name='Test Version', product_name='Test Product'):
version['homepage_locator'] = (self._version_homepage_locator[0], self._version_homepage_locator[1] % {'product_name': product_name, 'version_name': version['name']})
self.selenium.find_element(*self._version_name_locator).send_keys(version['name'])
-
+
product_select = Select(self.selenium.find_element(*self._product_select_locator))
product_select.select_by_visible_text(product_name)
View
3 pages/home_page.py
@@ -5,9 +5,10 @@
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
from selenium.webdriver.common.by import By
-from pages.base_page import MozTrapBasePage
from selenium.webdriver.support.select import Select
+from pages.base_page import MozTrapBasePage
+
class MozTrapHomePage(MozTrapBasePage):
View
1 pages/manage_cases_page.py
@@ -5,6 +5,7 @@
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
from selenium.webdriver.common.by import By
+
from pages.base_page import MozTrapBasePage
View
4 pages/manage_versions_page.py
@@ -4,10 +4,12 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
-from pages.base_page import MozTrapBasePage
from selenium.webdriver.common.by import By
from selenium.webdriver.support.wait import WebDriverWait
+from pages.base_page import MozTrapBasePage
+
+
class MozTrapManageVersionsPage(MozTrapBasePage):
_page_title = 'MozTrap'
View
5 pages/page.py
@@ -4,9 +4,8 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
-import time
-import base64
from unittestzero import Assert
+
from selenium.webdriver.support.ui import WebDriverWait
from selenium.common.exceptions import NoSuchElementException
from selenium.common.exceptions import ElementNotVisibleException
@@ -79,4 +78,4 @@ def type_in_element(self, locator, text):
text_fld = self.selenium.find_element(*locator)
text_fld.clear()
- text_fld.send_keys(text)
+ text_fld.send_keys(text)
View
7 tests/test_homepage.py
@@ -4,10 +4,13 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+import pytest
+
+from unittestzero import Assert
+
from pages.home_page import MozTrapHomePage
from pages.base_test import BaseTest
-from unittestzero import Assert
-import pytest
+
class TestHomepage(BaseTest):
View
5 tests/test_manage_cases_page.py
@@ -4,10 +4,11 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
-from pages.manage_cases_page import MozTrapManageCasesPage
-from pages.base_test import BaseTest
from unittestzero import Assert
+from pages.base_test import BaseTest
+from pages.manage_cases_page import MozTrapManageCasesPage
+
class TestManageCasesPage(BaseTest):
View
5 tests/test_manage_products_page.py
@@ -4,10 +4,11 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
-from pages.manage_products_page import MozTrapManageProductsPage
-from pages.base_test import BaseTest
from unittestzero import Assert
+from pages.base_test import BaseTest
+from pages.manage_products_page import MozTrapManageProductsPage
+
class TestManageProductsPage(BaseTest):
View
5 tests/test_manage_profiles_page.py
@@ -4,10 +4,11 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
-from pages.manage_profiles_page import MozTrapManageProfilesPage
-from pages.base_test import BaseTest
from unittestzero import Assert
+from pages.base_test import BaseTest
+from pages.manage_profiles_page import MozTrapManageProfilesPage
+
class TestManageProfilesPage(BaseTest):
View
5 tests/test_manage_runs_page.py
@@ -4,10 +4,11 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
-from pages.manage_runs_page import MozTrapManageRunsPage
-from pages.base_test import BaseTest
from unittestzero import Assert
+from pages.base_test import BaseTest
+from pages.manage_runs_page import MozTrapManageRunsPage
+
class TestManageRunsPage(BaseTest):
View
5 tests/test_manage_suites_page.py
@@ -4,10 +4,11 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
-from pages.manage_suites_page import MozTrapManageSuitesPage
-from pages.base_test import BaseTest
from unittestzero import Assert
+from pages.base_test import BaseTest
+from pages.manage_suites_page import MozTrapManageSuitesPage
+
class TestManageSuitesPage(BaseTest):
View
5 tests/test_manage_versions_page.py
@@ -4,10 +4,11 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
-from pages.manage_versions_page import MozTrapManageVersionsPage
-from pages.base_test import BaseTest
from unittestzero import Assert
+from pages.base_test import BaseTest
+from pages.manage_versions_page import MozTrapManageVersionsPage
+
class TestManageVersionsPage(BaseTest):
View
5 tests/test_run_tests_page.py
@@ -4,10 +4,11 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
-from pages.run_tests_page import MozTrapRunTestsPage
-from pages.base_test import BaseTest
from unittestzero import Assert
+from pages.base_test import BaseTest
+from pages.run_tests_page import MozTrapRunTestsPage
+
class TestRunTestsPage(BaseTest):

0 comments on commit 49d9d2c

Please sign in to comment.