-
Notifications
You must be signed in to change notification settings - Fork 4
Pull request to merge with master #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
## Testing | ||
To run the tests for the app, and see the coverage, run | ||
``` | ||
nosetests --with-coverage |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This shows coverage even for your test dependencies. Report coverage only for your app.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can add a .coveragerc
file to tell it what to ignore.
config/config.py
Outdated
DEBUG = True | ||
TESTING = False | ||
CSRF_ENABLED = True | ||
SECRET_KEY = 'ssssssssssssssssssssuuuuuuuuuuuuuuuuuuutttttttttttttttffffff666668778999' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add the SECRET_KEY
to your environment and import it from os.env
Mako==1.0.6 | ||
MarkupSafe==0.23 | ||
nose==1.3.7 | ||
passlib==1.7.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
passlib and Werkzeug do the same thing... from werkzeug.security import generate_password_hash, check_password_hash
It would be better to just use Werkzeug as it comes with a Flask installation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I used it at the start but it was returning count error , when trying to get the hashed password. any help on this
Changes Unknown when pulling 7b6be18 on develop into ** on master**. |
Changes Unknown when pulling 7677ade on develop into ** on master**. |
Changes Unknown when pulling a2541ca on develop into ** on master**. |
Changes Unknown when pulling 46ff030 on develop into ** on master**. |
Changes Unknown when pulling 01ee03f on develop into ** on master**. |
Changes Unknown when pulling d1b71e2 on develop into ** on master**. |
app/views.py
Outdated
from flask_sqlalchemy import SQLAlchemy | ||
from app import app, api, db | ||
from .models import User, BucketList, BucketListItems | ||
from .serializers import bucketlist_serializer, bucketlistitem_serializer |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let us find a way to import without the .
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe e.g app.serializers
config/config.py
Outdated
|
||
class DevelopmentConfig(Config): | ||
DEVELOPMENT = True | ||
DEBUG = True |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you are repeating yourself here since this is already L6
Changes Unknown when pulling 706a7e6 on develop into ** on master**. |
No description provided.