-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
142 additions
and
111 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
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,21 @@ | ||
language: python | ||
|
||
python: | ||
- "2.7" | ||
- "3.5" | ||
|
||
sudo: false | ||
|
||
cache: | ||
- apt | ||
- pip | ||
|
||
install: | ||
- pip install -r requirements.txt -r requirements-dev.txt | ||
|
||
script: nosetests | ||
|
||
branches: | ||
only: | ||
- develop | ||
- master |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
application: flask-social-blueprint | ||
version: 2 | ||
version: 3 | ||
runtime: python27 | ||
api_version: 1 | ||
threadsafe: true | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,14 @@ | ||
flask-social-blueprint>=0.7 | ||
Babel>=1.3 | ||
Flask>=0.10.1 | ||
Flask-Babel>=0.9 | ||
Flask-Login>=0.2.11 | ||
Flask-Mail>=0.9.0 | ||
Flask-OAuth>=0.12 | ||
Flask-Principal>=0.4.0 | ||
Flask-Script>=2.0.5 | ||
Flask-Security>=1.7.2 | ||
Flask-WTF>=0.9.5 | ||
Jinja2>=2.7.2 | ||
MarkupSafe>=0.19 | ||
WTForms>=1.0.5 | ||
Werkzeug>=0.9.4 | ||
blinker>=1.3 | ||
Flask-Security>=1.7.5 | ||
Flask-Mail>=0.9.1 | ||
Flask-Script | ||
Flask-SQLAlchemy | ||
facebook-sdk>=0.4.0 | ||
google-api-python-client>=1.2 | ||
httplib2>=0.8 | ||
itsdangerous>=0.24 | ||
oauth2>=1.5.211 | ||
oauthlib>=0.6.1 | ||
passlib>=1.6.2 | ||
python-twitter>=1.3.1 | ||
pytz>=2014.2 | ||
requests>=2.2.1 | ||
requests-oauthlib>=0.4.0 | ||
simplejson>=3.5.2 | ||
speaklater>=1.3 | ||
certifi | ||
python-twitter | ||
PyOpenSSL | ||
ndg-httpsclient | ||
pyasn1 | ||
|
Empty file.
File renamed without changes.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,15 @@ | ||
flask-social-blueprint>=0.7 | ||
Babel>=1.3 | ||
Flask>=0.10.1 | ||
Flask-Babel>=0.9 | ||
Flask-Login==0.2.11 | ||
Flask-Mail>=0.9.0 | ||
Flask-OAuth>=0.12 | ||
Flask-Principal>=0.4.0 | ||
Flask-Script>=2.0.5 | ||
Flask-Security>=1.7.2 | ||
Flask-WTF>=0.9.5 | ||
Jinja2>=2.7.2 | ||
MarkupSafe>=0.19 | ||
WTForms>=1.0.5 | ||
Werkzeug>=0.9.4 | ||
blinker>=1.3 | ||
Flask-Security>=1.7.5 | ||
Flask-Mail>=0.9.1 | ||
Flask-Script | ||
Flask-SQLAlchemy | ||
facebook-sdk>=0.4.0 | ||
google-api-python-client>=1.2 | ||
httplib2>=0.8 | ||
itsdangerous>=0.24 | ||
oauth2>=1.5.211 | ||
oauthlib>=0.6.1 | ||
passlib>=1.6.2 | ||
python-twitter>=1.3.1 | ||
pytz>=2014.2 | ||
requests>=2.2.1 | ||
requests-oauthlib>=0.4.0 | ||
simplejson>=3.5.2 | ||
speaklater>=1.3 | ||
python-twitter | ||
PyOpenSSL | ||
ndg-httpsclient | ||
pyasn1 | ||
|
||
SQLAlchemy>=0.9.4 | ||
Flask-SQLAlchemy>=1.0 | ||
|
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 |
---|---|---|
@@ -1,30 +1,36 @@ | ||
# coding=utf-8 | ||
# Created 2014 by Janusz Skonieczny | ||
import logging | ||
import os | ||
import tempfile | ||
import unittest | ||
import flask_social_blueprint | ||
|
||
from main import app | ||
from website import database | ||
|
||
|
||
class TestFlaskSocialBlueprint(unittest.TestCase): | ||
def setUp(self): | ||
self.db_fd, self.db_file = tempfile.mkstemp() | ||
app.config['SQLALCHEMY_DATABASE_URI'] = "sqlite:///" + self.db_file | ||
self.app = app.test_client() | ||
with app.app_context(): | ||
database.init_db() | ||
|
||
def tearDown(self): | ||
os.close(self.db_fd) | ||
os.unlink(self.db_file) | ||
|
||
def test_login_redirect(self): | ||
# simple smoke test | ||
rv = self.app.get('/') | ||
logging.debug("rv: %s" % rv.headers) | ||
self.assertEqual(302, rv.status_code) | ||
assert rv.headers.get('Location').startswith("http://localhost/login") | ||
# coding=utf-8 | ||
# Created 2014 by Janusz Skonieczny | ||
import logging | ||
import os | ||
import tempfile | ||
import unittest | ||
import flask_social_blueprint | ||
|
||
from main import app | ||
from website import database | ||
|
||
|
||
class TestFlaskSocialBlueprint(unittest.TestCase): | ||
def setUp(self): | ||
self.db_fd, self.db_file = tempfile.mkstemp() | ||
app.config['SQLALCHEMY_DATABASE_URI'] = "sqlite:///" + self.db_file | ||
self.app = app.test_client() | ||
with app.app_context(): | ||
database.init_db() | ||
|
||
def tearDown(self): | ||
os.close(self.db_fd) | ||
os.unlink(self.db_file) | ||
|
||
def test_root_requires_login(self): | ||
# simple smoke test | ||
rv = self.app.get('/') | ||
logging.debug("rv: %s" % rv.headers) | ||
self.assertEqual(302, rv.status_code) | ||
assert rv.headers.get('Location').startswith("http://localhost/login") | ||
|
||
def test_not_redirect_loop(self): | ||
# simple smoke test | ||
rv = self.app.get('/login') | ||
logging.debug("rv: %s" % rv.headers) | ||
self.assertEqual(200, rv.status_code) |
Empty file.
File renamed without changes.
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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
# extra development dependencies | ||
nose>=1.3.3 | ||
# extra development dependencies | ||
nose>=1.3.7 | ||
pip>=7.1 |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# coding=utf-8 | ||
# Copyright 2013 Janusz Skonieczny | ||
__version__ = '0.7.1' | ||
__version__ = '0.7.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,10 @@ | ||
# coding=utf-8 | ||
# Created 2014 by Janusz Skonieczny | ||
import os | ||
import tempfile | ||
import unittest | ||
import flask_social_blueprint | ||
import main | ||
|
||
from main import app | ||
|
||
class TestFlaskSocialBlueprint(unittest.TestCase): | ||
pass | ||
# coding=utf-8 | ||
# Created 2014 by Janusz Skonieczny | ||
import os | ||
import tempfile | ||
import unittest | ||
import flask_social_blueprint | ||
|
||
|
||
class TestFlaskSocialBlueprint(unittest.TestCase): | ||
pass |