Commit 35c3cf1f by Arun Babu Neelicattu

tests: make test compatible with core > 1.1.0a7

parent 09633667
...@@ -6,7 +6,10 @@ from typing import TYPE_CHECKING ...@@ -6,7 +6,10 @@ from typing import TYPE_CHECKING
import pytest import pytest
from deepdiff import DeepDiff from deepdiff import DeepDiff
from poetry.core.semver.helpers import parse_constraint
from poetry.core.semver.version import Version
from poetry.utils._compat import metadata
from poetry.utils.dependency_specification import parse_dependency_specification from poetry.utils.dependency_specification import parse_dependency_specification
...@@ -74,10 +77,13 @@ if TYPE_CHECKING: ...@@ -74,10 +77,13 @@ if TYPE_CHECKING:
"name": "name", "name": "name",
"markers": 'python_version == "2.7"', "markers": 'python_version == "2.7"',
"url": "http://foo.com", "url": "http://foo.com",
# This is commented out as there is a bug in **(
# Dependency.create_from_pep_508 that leads to incorrect {"extras": ["fred", "bar"]}
# URL Dependency creation. if parse_constraint(">1.1.0a7").allows(
# should be: "extras": ["fred", "bar"], Version.parse(metadata.version("poetry-core"))
)
else {}
),
}, },
), ),
( (
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment