Skip to content

Commit 30eabed

Browse files
committed
Perform syntax refactoring on example tests
1 parent 093c106 commit 30eabed

19 files changed

+12
-29
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ pytest my_first_test.py --demo
7272
from seleniumbase import BaseCase
7373

7474
class MyTestClass(BaseCase):
75-
7675
def test_basics(self):
7776
url = "https://store.xkcd.com/collections/posters"
7877
self.open(url)

examples/basic_test.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33

44
class MyTestClass(BaseCase):
5-
65
def test_basics(self):
76
self.open("https://store.xkcd.com/search")
87
self.type('input[name="q"]', "xkcd book\n")

examples/fail_if_old_driver_test.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ def test_fail_if_using_an_old_chromedriver(self):
99
print(" (Run with: '--browser=chrome')")
1010
self.skip("This test is only for Chrome!")
1111
chrome_version = self.get_chrome_version()
12-
major_chrome_version = chrome_version.split('.')[0]
12+
major_chrome_version = chrome_version.split(".")[0]
1313
chromedriver_version = self.get_chromedriver_version()
14-
major_chromedriver_version = chromedriver_version.split('.')[0]
14+
major_chromedriver_version = chromedriver_version.split(".")[0]
1515
install_sb = "sbase install chromedriver %s" % major_chrome_version
1616
if (
1717
int(major_chromedriver_version) < 73
@@ -20,7 +20,7 @@ def test_fail_if_using_an_old_chromedriver(self):
2020
message = (
2121
'Your version of chromedriver: "%s"\n '
2222
'is too old for your version of Chrome: "%s"\n'
23-
'You should upgrade chromedriver '
23+
"You should upgrade chromedriver "
2424
"to receive important bug fixes!\n"
2525
'Run this command to upgrade: "%s"'
2626
% (chromedriver_version, chrome_version, install_sb)

examples/my_first_test.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33

44
class MyTestClass(BaseCase):
5-
65
def test_basics(self):
76
url = "https://store.xkcd.com/collections/posters"
87
self.open(url)

examples/translations/chinese_test_1.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44

55
class 我的测试类(硒测试用例):
6-
76
def test_例子1(self):
87
self.开启("https://zh.wikipedia.org/wiki/")
98
self.断言标题("维基百科,自由的百科全书")

examples/translations/dutch_test_1.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44

55
class MijnTestklasse(Testgeval):
6-
76
def test_voorbeeld_1(self):
87
self.openen("https://nl.wikipedia.org/wiki/Hoofdpagina")
98
self.controleren_element('a[title*="hoofdpagina gaan"]')

examples/translations/english_test_1.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33

44
class MyTestClass(BaseCase):
5-
65
def test_example_1(self):
76
url = "https://store.xkcd.com/collections/posters"
87
self.open(url)

examples/translations/french_test_1.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44

55
class MaClasseDeTest(CasDeBase):
6-
76
def test_exemple_1(self):
87
self.ouvrir("https://fr.wikipedia.org/wiki/")
98
self.vérifier_texte("Wikipédia") # noqa

examples/translations/italian_test_1.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44

55
class MiaClasseDiTest(CasoDiProva):
6-
76
def test_esempio_1(self):
87
self.apri("https://it.wikipedia.org/wiki/")
98
self.verificare_testo("Wikipedia")

examples/translations/japanese_test_1.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44

55
class 私のテストクラス(セレニウムテストケース):
6-
76
def test_例1(self):
87
self.を開く("https://ja.wikipedia.org/wiki/")
98
self.テキストを確認する("ウィキペディア")

0 commit comments

Comments
 (0)