Skip to content
This repository

Pep8 fixes for all the *.py files #64

Merged
merged 1 commit into from almost 2 years ago

3 participants

Trif Andrei-Alin Florin Strugariu Zac
Trif Andrei-Alin
Collaborator
AlinT commented July 19, 2012

No description provided.

Florin Strugariu
Collaborator

LGTM

Zac
Collaborator
zacc commented July 19, 2012

Spiffing, merging:

Zac zacc merged commit 6bd3eed into from July 19, 2012
Zac zacc closed this July 19, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 1 author.

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

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.