Skip to content

Commit 6e9627e

Browse files
committed
Add test_pytest_parameterize.py
1 parent 872acd6 commit 6e9627e

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

examples/test_pytest_parameterize.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import pytest
2+
3+
4+
@pytest.mark.parametrize('value', ["pytest", "selenium"])
5+
def test_sb_fixture_with_no_class(sb, value):
6+
sb.open("https://google.com/ncr")
7+
sb.update_text('input[title="Search"]', value + '\n')
8+
sb.assert_text(value, "div#center_col")
9+
10+
11+
class Test_SB_Fixture():
12+
@pytest.mark.parametrize('value', ["pytest", "selenium"])
13+
def test_sb_fixture_inside_class(self, sb, value):
14+
sb.open("https://google.com/ncr")
15+
sb.update_text('input[title="Search"]', value + '\n')
16+
sb.assert_text(value, "div#center_col")

0 commit comments

Comments
 (0)