Skip to content

Commit

Permalink
style(tests): split unit test into two functions
Browse files Browse the repository at this point in the history
  • Loading branch information
ossareh committed Apr 25, 2021
1 parent 702b3e2 commit b4607fe
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/packages/test_file_dependency.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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()
Expand Down

0 comments on commit b4607fe

Please sign in to comment.