From b4607fed134bc54c6760446df3d0e08299c99436 Mon Sep 17 00:00:00 2001 From: "P. Michael Ossareh" Date: Sun, 25 Apr 2021 14:54:26 -0500 Subject: [PATCH] style(tests): split unit test into two functions --- tests/packages/test_file_dependency.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/packages/test_file_dependency.py b/tests/packages/test_file_dependency.py index d5664c192..8315594ca 100644 --- a/tests/packages/test_file_dependency.py +++ b/tests/packages/test_file_dependency.py @@ -67,7 +67,7 @@ def test_file_dependency_pep_508_local_file_relative_path(mocker): _test_file_dependency_pep_508(mocker, "demo", path, requirement) -def test_to_pep_508_with_marker(mocker): +def test_absolute_file_dependency_to_pep_508_with_marker(mocker): wheel = "demo-0.1.0-py2.py3-none-any.whl" abs_path = DIST_PATH / wheel @@ -82,6 +82,10 @@ def test_to_pep_508_with_marker(mocker): marker=SingleMarker("sys.platform", "linux"), ) + +def test_relative_file_dependency_to_pep_508_with_marker(mocker): + wheel = "demo-0.1.0-py2.py3-none-any.whl" + rel_path = Path("..") / "fixtures" / "distributions" / wheel requirement = '{} @ {} ; sys_platform == "linux"'.format( "demo", rel_path.as_posix()