mirror of
https://github.com/wassname/pip-package-list.git
synced 2026-06-27 16:10:20 +08:00
Re-structure test cases/fixtures
This commit is contained in:
+6
-6
@@ -3,7 +3,7 @@ import os
|
||||
from pippackagelist.list import list as list_packages
|
||||
|
||||
test_case_1_path = os.path.join(
|
||||
os.path.dirname(__file__), "./fixtures/list-test-case-1"
|
||||
os.path.dirname(__file__), "./test-cases/list-1"
|
||||
)
|
||||
|
||||
|
||||
@@ -14,10 +14,10 @@ def test_list_from_requirements():
|
||||
str(requirement) for requirement in list_packages([path])
|
||||
]
|
||||
assert raw_requirements == [
|
||||
"-e tests/fixtures/list-test-case-1/package-1",
|
||||
"-e tests/test-cases/list-1/package-1",
|
||||
"django==1.1",
|
||||
"redis==2.0",
|
||||
"-r tests/fixtures/list-test-case-1/requirements-nested.txt",
|
||||
"-r tests/test-cases/list-1/requirements-nested.txt",
|
||||
]
|
||||
|
||||
|
||||
@@ -30,11 +30,11 @@ def test_list_from_requirements_recurse_recursive():
|
||||
]
|
||||
|
||||
assert raw_requirements == [
|
||||
"-e tests/fixtures/list-test-case-1/package-1",
|
||||
"-e tests/test-cases/list-1/package-1",
|
||||
"django==1.1",
|
||||
"redis==2.0",
|
||||
"test>=1.2",
|
||||
"-e tests/fixtures/list-test-case-1/package-2",
|
||||
"-e tests/test-cases/list-1/package-2",
|
||||
]
|
||||
|
||||
|
||||
@@ -49,7 +49,7 @@ def test_list_from_requirements_recurse_editable():
|
||||
assert raw_requirements == [
|
||||
"django==1.1",
|
||||
"redis==2.0",
|
||||
"-r tests/fixtures/list-test-case-1/requirements-nested.txt",
|
||||
"-r tests/test-cases/list-1/requirements-nested.txt",
|
||||
"pyyaml>=2.1",
|
||||
"grpcio==9.1",
|
||||
"pytest==5.2",
|
||||
|
||||
@@ -8,7 +8,7 @@ from pippackagelist.requirements import (
|
||||
from pippackagelist.requirements_txt_parser import parse_requirements_txt
|
||||
|
||||
requirements_txt_path = os.path.join(
|
||||
os.path.dirname(__file__), "./fixtures/requirements.txt"
|
||||
os.path.dirname(__file__), "./test-cases/requirements.txt"
|
||||
)
|
||||
|
||||
|
||||
|
||||
@@ -7,9 +7,9 @@ from pippackagelist.requirements import (
|
||||
)
|
||||
from pippackagelist.setup_py_parser import parse_setup_py
|
||||
|
||||
setup_py_path = os.path.join(os.path.dirname(__file__), "./fixtures/setup.py")
|
||||
setup_py_path = os.path.join(os.path.dirname(__file__), "./test-cases/setup.py")
|
||||
setup_py_with_extras_path = os.path.join(
|
||||
os.path.dirname(__file__), "./fixtures/setup_with_extras.py"
|
||||
os.path.dirname(__file__), "./test-cases/setup_with_extras.py"
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user