mirror of
https://github.com/wassname/flask-s3.git
synced 2026-06-27 15:50:06 +08:00
Use coverage scripts.
This commit is contained in:
+2
-1
@@ -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
@@ -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'),
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
Flask
|
||||
boto3
|
||||
six
|
||||
coverage
|
||||
coveralls
|
||||
nose
|
||||
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user