style: activate string normalization
This commit is contained in:
committed by
Henry Schreiner
parent
d1900f6a05
commit
bda76b21cb
@@ -7,21 +7,21 @@ def test_defaults():
|
||||
dependency_constraints = DependencyConstraints.with_defaults()
|
||||
|
||||
project_root = Path(__file__).parents[1]
|
||||
resources_dir = project_root / 'cibuildwheel' / 'resources'
|
||||
resources_dir = project_root / "cibuildwheel" / "resources"
|
||||
|
||||
assert dependency_constraints.base_file_path.samefile(resources_dir / 'constraints.txt')
|
||||
assert dependency_constraints.get_for_python_version('3.99').samefile(
|
||||
resources_dir / 'constraints.txt'
|
||||
assert dependency_constraints.base_file_path.samefile(resources_dir / "constraints.txt")
|
||||
assert dependency_constraints.get_for_python_version("3.99").samefile(
|
||||
resources_dir / "constraints.txt"
|
||||
)
|
||||
assert dependency_constraints.get_for_python_version('3.9').samefile(
|
||||
resources_dir / 'constraints-python39.txt'
|
||||
assert dependency_constraints.get_for_python_version("3.9").samefile(
|
||||
resources_dir / "constraints-python39.txt"
|
||||
)
|
||||
assert dependency_constraints.get_for_python_version('3.6').samefile(
|
||||
resources_dir / 'constraints-python36.txt'
|
||||
assert dependency_constraints.get_for_python_version("3.6").samefile(
|
||||
resources_dir / "constraints-python36.txt"
|
||||
)
|
||||
assert dependency_constraints.get_for_python_version('3.5').samefile(
|
||||
resources_dir / 'constraints-python35.txt'
|
||||
assert dependency_constraints.get_for_python_version("3.5").samefile(
|
||||
resources_dir / "constraints-python35.txt"
|
||||
)
|
||||
assert dependency_constraints.get_for_python_version('2.7').samefile(
|
||||
resources_dir / 'constraints-python27.txt'
|
||||
assert dependency_constraints.get_for_python_version("2.7").samefile(
|
||||
resources_dir / "constraints-python27.txt"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user