Skip to content

Commit 127a383

Browse files
authored
Merge pull request #513 from shashankaryan/new
Issue #366 solved, user is able to connect twitter facebook and linkedin
2 parents d0953b3 + c851b33 commit 127a383

File tree

5 files changed

+31
-4
lines changed

5 files changed

+31
-4
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ cache:
1212
- $HOME/.pip-cache/
1313

1414
install:
15-
- pip install pip==8.1.2
15+
- pip install pip==9.0.1
1616
- pip install -r requirements-dev.txt --allow-all-external
1717
- pip install coveralls
1818

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# -*- coding: utf-8 -*-
2+
from __future__ import unicode_literals
3+
4+
from django.db import migrations, models
5+
6+
7+
class Migration(migrations.Migration):
8+
9+
dependencies = [
10+
('tickets', '0001_initial'),
11+
]
12+
13+
operations = [
14+
migrations.AlterField(
15+
model_name='ticket',
16+
name='email',
17+
field=models.EmailField(max_length=254),
18+
)
19+
]

requirements-dev.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@
33
# Testing
44
# -------------------------------------------------
55
mock==2.0.0
6-
factory_boy==2.7.0
6+
# Fix for travis CI tests failing
7+
# Ref: https://github.com/FactoryBoy/factory_boy/issues/334#issuecomment-267696136
8+
fake-factory==0.7.4
9+
factory-boy==2.7.0
10+
711
flake8==2.4.1
812
pytest-django==2.9.1
913
pytest-cov==2.2.1

settings/common.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@
6565
'allauth.socialaccount',
6666
'allauth.socialaccount.providers.google',
6767
'allauth.socialaccount.providers.github',
68+
'allauth.socialaccount.providers.twitter',
69+
'allauth.socialaccount.providers.linkedin',
70+
'allauth.socialaccount.providers.facebook',
6871

6972
'bootstrap3',
7073

@@ -101,7 +104,7 @@
101104
# Needed to login by username in Django admin, regardless of `allauth`
102105
"django.contrib.auth.backends.ModelBackend",
103106
# `allauth` specific authentication methods, such as login by e-mail
104-
"allauth.account.auth_backends.AuthenticationBackend"
107+
"allauth.account.auth_backends.AuthenticationBackend",
105108
)
106109

107110
ACCOUNT_AUTHENTICATION_METHOD = "username_email"

tests/factories.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
# Standard Library
44
import datetime
5+
from datetime import timedelta
56
import uuid
67

78
# Third Party Stuff
@@ -138,7 +139,7 @@ class Meta:
138139
strategy = factory.CREATE_STRATEGY
139140

140141
event_date = fuzzy.FuzzyDate(datetime.date.today(),
141-
datetime.date(2017, 1, 1)).fuzz()
142+
datetime.date.today() + timedelta(days=90)).fuzz()
142143
start_time = fuzzy.FuzzyChoice(['9:30.750000', ]).fuzz()
143144
end_time = fuzzy.FuzzyChoice(['10:15.750000', ]).fuzz()
144145
conference = factory.SubFactory("tests.factories.ConferenceFactory")

0 commit comments

Comments
 (0)