File tree Expand file tree Collapse file tree 5 files changed +31
-4
lines changed
junction/tickets/migrations Expand file tree Collapse file tree 5 files changed +31
-4
lines changed Original file line number Diff line number Diff line change 12
12
- $HOME/.pip-cache/
13
13
14
14
install :
15
- - pip install pip==8.1.2
15
+ - pip install pip==9.0.1
16
16
- pip install -r requirements-dev.txt --allow-all-external
17
17
- pip install coveralls
18
18
Original file line number Diff line number Diff line change
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
+ ]
Original file line number Diff line number Diff line change 3
3
# Testing
4
4
# -------------------------------------------------
5
5
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
+
7
11
flake8 == 2.4.1
8
12
pytest-django == 2.9.1
9
13
pytest-cov == 2.2.1
Original file line number Diff line number Diff line change 65
65
'allauth.socialaccount' ,
66
66
'allauth.socialaccount.providers.google' ,
67
67
'allauth.socialaccount.providers.github' ,
68
+ 'allauth.socialaccount.providers.twitter' ,
69
+ 'allauth.socialaccount.providers.linkedin' ,
70
+ 'allauth.socialaccount.providers.facebook' ,
68
71
69
72
'bootstrap3' ,
70
73
101
104
# Needed to login by username in Django admin, regardless of `allauth`
102
105
"django.contrib.auth.backends.ModelBackend" ,
103
106
# `allauth` specific authentication methods, such as login by e-mail
104
- "allauth.account.auth_backends.AuthenticationBackend"
107
+ "allauth.account.auth_backends.AuthenticationBackend" ,
105
108
)
106
109
107
110
ACCOUNT_AUTHENTICATION_METHOD = "username_email"
Original file line number Diff line number Diff line change 2
2
3
3
# Standard Library
4
4
import datetime
5
+ from datetime import timedelta
5
6
import uuid
6
7
7
8
# Third Party Stuff
@@ -138,7 +139,7 @@ class Meta:
138
139
strategy = factory .CREATE_STRATEGY
139
140
140
141
event_date = fuzzy .FuzzyDate (datetime .date .today (),
141
- datetime .date ( 2017 , 1 , 1 )).fuzz ()
142
+ datetime .date . today () + timedelta ( days = 90 )).fuzz ()
142
143
start_time = fuzzy .FuzzyChoice (['9:30.750000' , ]).fuzz ()
143
144
end_time = fuzzy .FuzzyChoice (['10:15.750000' , ]).fuzz ()
144
145
conference = factory .SubFactory ("tests.factories.ConferenceFactory" )
You can’t perform that action at this time.
0 commit comments