Skip to content

Commit 66bf18f

Browse files
authored
Merge pull request #38 from elliotweiser/requests-update
Update requests library for version check test
2 parents b3f873b + 13c261f commit 66bf18f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/test-requirements.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ flake8==3.5.0
2525
funcsigs==1.0.2
2626
future==0.16.0
2727
git-url-parse==1.1.0
28-
idna==2.6
28+
idna==2.7
2929
ipaddress==1.0.22
3030
Jinja2==2.10
3131
jinja2-time==0.2.0
@@ -57,12 +57,12 @@ python-dateutil==2.7.3
5757
python-gilt==1.2.1
5858
python-vagrant==0.5.15
5959
PyYAML==3.12
60-
requests==2.18.4
60+
requests==2.19.0
6161
sh==1.12.14
6262
six==1.11.0
6363
tabulate==0.8.2
6464
testinfra==1.12.0
6565
tree-format==0.1.2
66-
urllib3==1.22
66+
urllib3==1.23
6767
whichcraft==0.4.1
6868
yamllint==1.11.1

tests/version_check.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def main(argv):
2222
url = 'https://galaxy.ansible.com/api/v1/platforms/?name=MacOSX'
2323
r = requests.get(url)
2424
json_obj = json.loads(r.text)
25-
allowed_versions = set(map(lambda x: str(x["release"]), json_obj))
25+
allowed_versions = set(map(lambda x: str(x["release"]), json_obj['results']))
2626

2727
print "ALLOWED:", list(allowed_versions)
2828
print

0 commit comments

Comments
 (0)