Skip to content

Commit 3b46c66

Browse files
hauntsaninjajaraco
hauntsaninja
authored andcommitted
And test it
1 parent ca287f6 commit 3b46c66

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

tests/test_api.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -245,18 +245,20 @@ def test_more_complex_deps_requires_text(self):
245245
246246
[extra1]
247247
dep4
248+
dep5@ git+https://example.com/python/[email protected]
248249
249250
[extra2:python_version < "3"]
250-
dep5
251+
dep6
251252
"""
252253
)
253254
deps = sorted(Distribution._deps_from_requires_text(requires))
254255
expected = [
255256
'dep1',
256257
'dep2',
257-
'dep3; python_version < "3"',
258-
'dep4; extra == "extra1"',
259-
'dep5; (python_version < "3") and extra == "extra2"',
258+
'dep3 ; python_version < "3"',
259+
'dep4 ; extra == "extra1"',
260+
'dep5@ git+https://example.com/python/[email protected] ; extra == "extra1"',
261+
'dep6 ; (python_version < "3") and extra == "extra2"',
260262
]
261263
# It's important that the environment marker expression be
262264
# wrapped in parentheses to avoid the following 'and' binding more

0 commit comments

Comments
 (0)