Skip to content

Commit a54c94b

Browse files
TG1999JonoYang
andauthored
Improve readability in tests
Co-authored-by: Jono Yang <JonoYang@users.noreply.github.com>
1 parent 0a77c38 commit a54c94b

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

tests/test_requirement_parsing.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,17 @@
77

88

99
def test_get_extra_data_from_requirements():
10-
assert list(get_extra_data_from_requirements(REQ_FILE)) == [
10+
expected = [
11+
{
12+
"extra_index_urls": [
13+
"https://pypi.python.org/simple/",
14+
"https://testpypi.python.org/simple/",
15+
"https://pypi1.python.org/simple/",
16+
]
17+
}
18+
]
19+
result = list(get_extra_data_from_requirements(REQ_FILE))
20+
assert expected == result
1121
{
1222
"extra_index_urls": [
1323
"https://pypi.python.org/simple/",

0 commit comments

Comments
 (0)