mirror of
https://github.com/kennethreitz/httpbin.git
synced 2026-06-05 23:00:18 +00:00
Merge pull request #184 from msabramo/travis
Add .travis.yml for Travis CI
This commit is contained in:
+13
@@ -0,0 +1,13 @@
|
||||
language: python
|
||||
|
||||
sudo: false
|
||||
env:
|
||||
- TOXENV=py27
|
||||
- TOXENV=py34
|
||||
- TOXENV=pypy
|
||||
|
||||
install:
|
||||
- travis_retry pip install tox
|
||||
|
||||
script:
|
||||
- tox
|
||||
@@ -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/)
|
||||
|
||||
[](https://travis-ci.org/Runscope/httpbin)
|
||||
|
||||
[](https://heroku.com/deploy?template=https://github.com/Runscope/httpbin)
|
||||
|
||||
|
||||
+3
-2
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user