This repository has been archived by the owner on Apr 28, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #53 from hasgeek/crudapi-mitesh
Testing environment bootstrapping
- Loading branch information
Showing
14 changed files
with
279 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
language: python | ||
python: | ||
- "2.7" | ||
- "pypy" | ||
install: | ||
- pip install -r requirements.txt --use-mirrors | ||
- pip install -r test_requirements.txt --use-mirrors | ||
script: | ||
- nosetests tests --with-coverage | ||
notifications: | ||
email: false | ||
irc: "irc.freenode.net#hasgeek-dev" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
# -*- coding: utf-8 -*- | ||
from flask import Markup | ||
|
||
#: The title of this site | ||
SITE_TITLE = 'Lastuser' | ||
|
||
#: Support contact email | ||
SITE_SUPPORT_EMAIL = 'test@example.com' | ||
|
||
#: TypeKit code for fonts | ||
TYPEKIT_CODE = '' | ||
|
||
#: Google Analytics code UA-XXXXXX-X | ||
GA_CODE = '' | ||
|
||
#: Database backend | ||
SQLALCHEMY_BINDS = { | ||
'lastuser': 'postgresql://postgres@localhost/myapp_test', | ||
} | ||
|
||
#: Cache type | ||
CACHE_TYPE = 'redis' | ||
|
||
#: Secret key | ||
SECRET_KEY = 'random_string_here' | ||
|
||
#: Timezone | ||
TIMEZONE = 'Asia/Calcutta' | ||
|
||
#: Reserved usernames | ||
#: Add to this list but do not remove any unless you want to break | ||
#: the website | ||
RESERVED_USERNAMES = set([ | ||
'app', | ||
'apps', | ||
'auth', | ||
'client', | ||
'confirm', | ||
'login', | ||
'logout', | ||
'new', | ||
'profile', | ||
'reset', | ||
'register', | ||
'token', | ||
'organizations', | ||
]) | ||
|
||
#: Mail settings | ||
#: MAIL_FAIL_SILENTLY : default True | ||
#: MAIL_SERVER : default 'localhost' | ||
#: MAIL_PORT : default 25 | ||
#: MAIL_USE_TLS : default False | ||
#: MAIL_USE_SSL : default False | ||
#: MAIL_USERNAME : default None | ||
#: MAIL_PASSWORD : default None | ||
#: DEFAULT_MAIL_SENDER : default None | ||
MAIL_FAIL_SILENTLY = False | ||
MAIL_SERVER = 'localhost' | ||
DEFAULT_MAIL_SENDER = ('Lastuser', 'test@example.com') | ||
MAIL_DEFAULT_SENDER = DEFAULT_MAIL_SENDER # For new versions of Flask-Mail | ||
|
||
#: Logging: recipients of error emails | ||
ADMINS = [] | ||
|
||
#: Log file | ||
LOGFILE = 'error.log' | ||
|
||
#: Use SSL for some URLs | ||
USE_SSL = False | ||
|
||
#: Twitter integration | ||
OAUTH_TWITTER_KEY = '' | ||
OAUTH_TWITTER_SECRET = '' | ||
|
||
#: GitHub integration | ||
OAUTH_GITHUB_KEY = '' | ||
OAUTH_GITHUB_SECRET = '' | ||
|
||
#: Recaptcha for the registration form | ||
RECAPTCHA_USE_SSL = USE_SSL | ||
RECAPTCHA_PUBLIC_KEY = '' | ||
RECAPTCHA_PRIVATE_KEY = '' | ||
RECAPTCHA_OPTIONS = '' | ||
|
||
#: SMS gateways | ||
SMS_SMSGUPSHUP_MASK = '' | ||
SMS_SMSGUPSHUP_USER = '' | ||
SMS_SMSGUPSHUP_PASS = '' | ||
|
||
#: Messages (text or HTML) | ||
MESSAGE_FOOTER = Markup('Copyright © <a href="http://hasgeek.com/">HasGeek</a>. Powered by <a href="https://github.com/hasgeek/lastuser" title="GitHub project page">Lastuser</a>, open source software from <a href="https://github.com/hasgeek">HasGeek</a>.') | ||
USERNAME_REASON = '' | ||
EMAIL_REASON = 'Please provide an email address to complete your profile' | ||
BIO_REASON = '' | ||
TIMEZONE_REASON = 'Dates and times will be shown in your preferred timezone' | ||
ORG_NAME_REASON = u"Your company’s name as it will appear in the URL. Letters, numbers and dashes only" | ||
ORG_TITLE_REASON = u"Your organization’s given name, preferably without legal suffixes" | ||
ORG_DESCRIPTION_REASON = u"A few words about your organization (optional). Plain text only" | ||
LOGIN_MESSAGE_1 = "" | ||
LOGIN_MESSAGE_2 = "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.