Skip to content

Commit a4c23cb

Browse files
committed
Add a test for azure-devops with python 310
Signed-off-by: Tushar Goel <tushar.goel.dav@gmail.com>
1 parent 4bac638 commit a4c23cb

File tree

2 files changed

+24
-6
lines changed

2 files changed

+24
-6
lines changed

tests/data/azure-devops.req-expected.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"options": [
77
"--requirement /home/tg1999/Desktop/python-inspector-1/tests/data/azure-devops.req.txt",
88
"--index-url https://pypi.org/simple",
9-
"--python-version 38",
9+
"--python-version 310",
1010
"--operating-system linux",
1111
"--json <file>"
1212
],
@@ -592,7 +592,7 @@
592592
"subpath": null,
593593
"primary_language": "Python",
594594
"description": "CFFI\n====\n\nForeign Function Interface for Python calling C code.\nPlease see the `Documentation <http://cffi.readthedocs.org/>`_.\n\nContact\n-------\n\n`Mailing list <https://groups.google.com/forum/#!forum/python-cffi>`_\n\n\n",
595-
"release_date": "2022-06-30T18:17:48",
595+
"release_date": "2022-06-30T18:15:50",
596596
"parties": [
597597
{
598598
"type": "person",
@@ -611,11 +611,11 @@
611611
],
612612
"keywords": [],
613613
"homepage_url": "http://cffi.readthedocs.org",
614-
"download_url": "https://files.pythonhosted.org/packages/b7/8b/06f30caa03b5b3ac006de4f93478dbd0239e2a16566d81a106c322dc4f79/cffi-1.15.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
615-
"size": 442655,
614+
"download_url": "https://files.pythonhosted.org/packages/88/89/c34caf63029fb7628ec2ebd5c88ae0c9bd17db98c812e4065a4d020ca41f/cffi-1.15.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
615+
"size": 441830,
616616
"sha1": null,
617-
"md5": "2719a841c9d7ea47de38f83ca2487966",
618-
"sha256": "4f2c9f67e9821cad2e5f480bc8d83b8742896f1242dba247911072d4fa94c192",
617+
"md5": "a29947fc15af734d35f4d1e537373898",
618+
"sha256": "dd86c085fae2efd48ac91dd7ccffcfc0571387fe1193d33b6394db7ef31fe2a4",
619619
"sha512": null,
620620
"bug_tracking_url": null,
621621
"code_view_url": null,

tests/test_cli.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,24 @@ def test_cli_with_environment_marker_and_complex_ranges():
162162
)
163163

164164

165+
@pytest.mark.online
166+
def test_cli_with_azure_devops():
167+
requirements_file = test_env.get_test_loc("azure-devops.req.txt")
168+
expected_file = test_env.get_test_loc("azure-devops.req-expected.json", must_exist=False)
169+
extra_options = [
170+
"--operating-system",
171+
"linux",
172+
"--python-version",
173+
"310",
174+
]
175+
check_requirements_resolution(
176+
requirements_file=requirements_file,
177+
expected_file=expected_file,
178+
extra_options=extra_options,
179+
regen=REGEN_TEST_FIXTURES,
180+
)
181+
182+
165183
@pytest.mark.online
166184
def test_cli_with_azure_devops():
167185
requirements_file = test_env.get_test_loc("azure-devops.req.txt")

0 commit comments

Comments
 (0)