Add missing version-specific constraint tests

This commit is contained in:
Joe Rickerby
2020-03-23 22:16:47 +00:00
parent ffaad9134b
commit de4bf6dafe
+8
View File
@@ -16,6 +16,14 @@ def test_defaults():
dependency_constraints.get_for_python_version('3.8'),
os.path.join(resources_dir, 'constraints.txt')
)
assert os.path.samefile(
dependency_constraints.get_for_python_version('3.6'),
os.path.join(resources_dir, 'constraints-python36.txt')
)
assert os.path.samefile(
dependency_constraints.get_for_python_version('3.5'),
os.path.join(resources_dir, 'constraints-python35.txt')
)
assert os.path.samefile(
dependency_constraints.get_for_python_version('2.7'),
os.path.join(resources_dir, 'constraints-python27.txt')