Merge pull request #184 from msabramo/travis

Add .travis.yml for Travis CI
This commit is contained in:
John Sheehan
2014-12-22 16:51:40 -08:00
3 changed files with 18 additions and 2 deletions
+13
View File
@@ -0,0 +1,13 @@
language: python
sudo: false
env:
- TOXENV=py27
- TOXENV=py34
- TOXENV=pypy
install:
- travis_retry pip install tox
script:
- tox
+2
View File
@@ -3,6 +3,8 @@ httpbin(1): HTTP Request & Response Service
Freely hosted in [HTTP](http://httpbin.org), [HTTPS](https://httpbin.org) & [EU](http://eu.httpbin.org/) flavors by [Runscope](https://www.runscope.com/)
[![Build
Status](https://travis-ci.org/Runscope/httpbin.svg)](https://travis-ci.org/Runscope/httpbin)
[![Deploy to Heroku](https://camo.githubusercontent.com/c0824806f5221ebb7d25e559568582dd39dd1170/68747470733a2f2f7777772e6865726f6b7563646e2e636f6d2f6465706c6f792f627574746f6e2e706e67)](https://heroku.com/deploy?template=https://github.com/Runscope/httpbin)
+3 -2
View File
@@ -68,8 +68,9 @@ class HttpbinTestCase(unittest.TestCase):
self.assertEqual(response.status_code, 200)
def test_post_body_binary(self):
with open('httpbin/core.pyc', 'rb') as f:
response = self.app.post('/post', data={"file": f.read()})
response = self.app.post(
'/post',
data={"file": b'\x01\x02\x03\x81\x82\x83'})
self.assertEqual(response.status_code, 200)
def test_post_body_unicode(self):