Skip to content

Commit 14cf97e

Browse files
committed
expect -> expected in the test
1 parent e4a7986 commit 14cf97e

File tree

1 file changed

+23
-23
lines changed

1 file changed

+23
-23
lines changed

tests/test_blurb_add.py

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -69,19 +69,19 @@ def test_invalid_issue_number(issue):
6969

7070
class TestValidSectionNames:
7171
@staticmethod
72-
def check(section, expect):
72+
def check(section, expected):
7373
actual = blurb._extract_section_name(section)
74-
assert actual == expect
74+
assert actual == expected
7575

7676
@pytest.mark.parametrize(
77-
('section', 'expect'),
77+
('section', 'expected'),
7878
tuple(zip(blurb.SECTIONS, blurb.SECTIONS))
7979
)
80-
def test_exact_names(self, section, expect):
81-
self.check(section, expect)
80+
def test_exact_names(self, section, expected):
81+
self.check(section, expected)
8282

8383
@pytest.mark.parametrize(
84-
('section', 'expect'), [
84+
('section', 'expected'), [
8585
('Sec', 'Security'),
8686
('sec', 'Security'),
8787
('security', 'Security'),
@@ -103,11 +103,11 @@ def test_exact_names(self, section, expect):
103103
('core', 'Core and Builtins'),
104104
]
105105
)
106-
def test_partial_words(self, section, expect):
107-
self.check(section, expect)
106+
def test_partial_words(self, section, expected):
107+
self.check(section, expected)
108108

109109
@pytest.mark.parametrize(
110-
('section', 'expect'), [
110+
('section', 'expected'), [
111111
('builtin', 'Core and Builtins'),
112112
('builtins', 'Core and Builtins'),
113113
('api', 'C API'),
@@ -119,11 +119,11 @@ def test_partial_words(self, section, expect):
119119
('demos', 'Tools/Demos'),
120120
]
121121
)
122-
def test_partial_special_names(self, section, expect):
123-
self.check(section, expect)
122+
def test_partial_special_names(self, section, expected):
123+
self.check(section, expected)
124124

125125
@pytest.mark.parametrize(
126-
('section', 'expect'), [
126+
('section', 'expected'), [
127127
('Core-and-Builtins', 'Core and Builtins'),
128128
('Core_and_Builtins', 'Core and Builtins'),
129129
('Core_and-Builtins', 'Core and Builtins'),
@@ -138,12 +138,12 @@ def test_partial_special_names(self, section, expect):
138138
('Tools demo', 'Tools/Demos'),
139139
]
140140
)
141-
def test_partial_separators(self, section, expect):
141+
def test_partial_separators(self, section, expected):
142142
# normalize the separtors '_', '-', ' ' and '/'
143-
self.check(section, expect)
143+
self.check(section, expected)
144144

145145
@pytest.mark.parametrize(
146-
('prefix', 'expect'), [
146+
('prefix', 'expected'), [
147147
('corean', 'Core and Builtins'),
148148
('coreand', 'Core and Builtins'),
149149
('coreandbuilt', 'Core and Builtins'),
@@ -157,23 +157,23 @@ def test_partial_separators(self, section, expect):
157157
('Coreand buil', 'Core and Builtins'),
158158
]
159159
)
160-
def test_partial_prefix_words(self, prefix, expect):
160+
def test_partial_prefix_words(self, prefix, expected):
161161
# try to find a match using prefixes (without separators and lowercase)
162-
self.check(prefix, expect)
162+
self.check(prefix, expected)
163163

164164
@pytest.mark.parametrize(
165-
('section', 'expect'),
165+
('section', 'expected'),
166166
[(name.lower(), name) for name in blurb.SECTIONS],
167167
)
168-
def test_exact_names_lowercase(self, section, expect):
169-
self.check(section, expect)
168+
def test_exact_names_lowercase(self, section, expected):
169+
self.check(section, expected)
170170

171171
@pytest.mark.parametrize(
172-
('section', 'expect'),
172+
('section', 'expected'),
173173
[(name.upper(), name) for name in blurb.SECTIONS],
174174
)
175-
def test_exact_names_uppercase(self, section, expect):
176-
self.check(section, expect)
175+
def test_exact_names_uppercase(self, section, expected):
176+
self.check(section, expected)
177177

178178

179179
@pytest.mark.parametrize('section', ['', ' ', ' '])

0 commit comments

Comments
 (0)