File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 37
37
38
38
- name : " Run tests"
39
39
run : |
40
- # We currently require 96 % test coverage and not 100% as this is the
40
+ # We currently require 99 % test coverage and not 100% as this is the
41
41
# level that coverage was at when the CI restriction was introduced.
42
- pytest -s -vvv --cov-fail-under 96 --cov=pip_check_reqs/ --cov=tests tests/ --cov-report=xml
42
+ pytest -s -vvv --cov-fail-under 99 --cov=pip_check_reqs/ --cov=tests tests/ --cov-report=xml
43
43
44
44
- name : " Upload coverage to Codecov"
45
45
uses : " codecov/codecov-action@v1"
Original file line number Diff line number Diff line change @@ -179,3 +179,12 @@ def ignore_reqs(req):
179
179
180
180
reqs = common .find_required_modules (options )
181
181
assert reqs == set (['foobar' ])
182
+
183
+
184
+ def test_search_packages_info ():
185
+ # We know that 'packaging' will be installed because it is a requirement of
186
+ # this package.
187
+ installed_package = 'packaging'
188
+ query = ('packaging' , )
189
+ [result ] = [item for item in common .search_packages_info (query = query )]
190
+ assert result ['name' ] == installed_package
You can’t perform that action at this time.
0 commit comments