Skip to content
This repository has been archived by the owner on Mar 29, 2022. It is now read-only.

Commit

Permalink
CI: run the API example
Browse files Browse the repository at this point in the history
  • Loading branch information
vfaronov committed Jul 25, 2016
1 parent 35eff27 commit 81878f0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,8 @@ script:
- tools/css_validator.sh httpolice/reports/html.css
- node_modules/.bin/jshint httpolice/reports/html.js

# Check that the API example works.
- python doc/api_example.py && grep -q 1194 report.html

- sphinx-build -W doc/ doc/_build/
- python setup.py sdist bdist_wheel
2 changes: 1 addition & 1 deletion doc/api_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
bad_exchanges = []

for exch in exchanges:
exch.silence([1089, 1194]) # Errors we don't care about
exch.silence([1089, 1227]) # Errors we don't care about
httpolice.check_exchange(exch)
if any(notice.severity > httpolice.Severity.comment
for resp in exch.responses # We only care about responses
Expand Down

0 comments on commit 81878f0

Please sign in to comment.