From f2382c916cadbbfbd4e4a913b2d15a815f6473ac Mon Sep 17 00:00:00 2001 From: David Hotham Date: Fri, 11 Feb 2022 20:49:48 +0000 Subject: [PATCH] add unit test --- tests/packages/test_dependency.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/packages/test_dependency.py b/tests/packages/test_dependency.py index cbcc7d484..6038417f9 100644 --- a/tests/packages/test_dependency.py +++ b/tests/packages/test_dependency.py @@ -298,3 +298,10 @@ def test_marker_properly_sets_python_constraint(): dependency.marker = 'python_version >= "3.6" and python_version < "4.0"' assert str(dependency.python_constraint) == ">=3.6,<4.0" + + +def test_dependency_markers_are_the_same_as_markers(): + dependency = Dependency.create_from_pep_508('foo ; extra=="bar"') + marker = parse_marker('extra=="bar"') + + assert dependency.marker == marker