Use coverage scripts.

This commit is contained in:
SunDwarf
2015-08-29 14:20:09 +01:00
parent 5268b76d50
commit da771c6be7
4 changed files with 7 additions and 3 deletions
+2 -1
View File
@@ -7,5 +7,6 @@ python:
# command to install dependencies, e.g. pip install -r requirements.txt --use-mirrors
install: pip install -r requirements.txt --use-mirrors
# command to run tests, e.g. python setup.py test
script: nosetests
script: nosetests --with-coverage --cover-package=flask_s3
after_success: coveralls
sudo: false
+1 -1
View File
@@ -314,7 +314,7 @@ class FlaskS3(object):
:param app: the :class:`flask.Flask` application object.
"""
defaults = [('S3_USE_HTTPS', True),
defaults = [('S3_USE_HTTP', False),
('USE_S3', True),
('USE_S3_DEBUG', False),
('S3_BUCKET_DOMAIN', 's3.amazonaws.com'),
+3
View File
@@ -1,3 +1,6 @@
Flask
boto3
six
coverage
coveralls
nose
+1 -1
View File
@@ -36,7 +36,7 @@ class FlaskStaticTest(unittest.TestCase):
def test_config(self):
""" Tests configuration vars exist. """
FlaskS3(self.app)
defaults = ('S3_USE_HTTPS', 'USE_S3', 'USE_S3_DEBUG',
defaults = ('S3_USE_HTTP', 'USE_S3', 'USE_S3_DEBUG',
'S3_BUCKET_DOMAIN', 'S3_CDN_DOMAIN',
'S3_USE_CACHE_CONTROL', 'S3_HEADERS',
'S3_URL_STYLE')