Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
go
Commits
b55d8f4d
Unverified
Commit
b55d8f4d
authored
Mar 26, 2017
by
David Haynes
Browse files
More formatting modifications
- Man those linter lines really make me go crazy
parent
efbd726b
Pipeline
#1148
passed with stage
in 1 minute and 12 seconds
Changes
12
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
go/go/admin.py
View file @
b55d8f4d
...
...
@@ -3,7 +3,8 @@ go/admin.py
"""
# Future Imports
from
__future__
import
unicode_literals
,
absolute_import
,
print_function
,
division
from
__future__
import
(
absolute_import
,
division
,
print_function
,
unicode_literals
)
# Django Imports
from
django.contrib
import
admin
...
...
go/go/cas_callbacks.py
View file @
b55d8f4d
...
...
@@ -3,7 +3,8 @@ go/cas_callbacks.py
"""
# Future Imports
from
__future__
import
unicode_literals
,
absolute_import
,
print_function
,
division
from
__future__
import
(
absolute_import
,
division
,
print_function
,
unicode_literals
)
# Django Imports
from
django.contrib.auth.models
import
User
...
...
go/go/forms.py
View file @
b55d8f4d
...
...
@@ -3,7 +3,8 @@ go/forms.py
"""
# Future Imports
from
__future__
import
unicode_literals
,
absolute_import
,
print_function
,
division
from
__future__
import
(
absolute_import
,
division
,
print_function
,
unicode_literals
)
# Python stdlib Imports
from
datetime
import
datetime
,
timedelta
...
...
@@ -21,7 +22,8 @@ from go.models import URL, RegisteredUser
# Other Imports
from
crispy_forms.helper
import
FormHelper
from
crispy_forms.layout
import
Layout
,
Fieldset
,
Submit
,
HTML
,
Div
,
Field
from
crispy_forms.bootstrap
import
StrictButton
,
PrependedText
,
Accordion
,
AccordionGroup
from
crispy_forms.bootstrap
import
(
StrictButton
,
PrependedText
,
Accordion
,
AccordionGroup
)
from
bootstrap3_datetime.widgets
import
DateTimePicker
class
URLForm
(
forms
.
ModelForm
):
...
...
go/go/management/commands/expirelinks.py
View file @
b55d8f4d
"""
go/commands/expirelinks.py
"""
# Future Imports
from
__future__
import
unicode_literals
,
absolute_import
,
print_function
,
division
from
__future__
import
(
absolute_import
,
division
,
print_function
,
unicode_literals
)
# Django Imports
from
django.core.management.base
import
BaseCommand
...
...
go/go/management/commands/test_expirelinks.py
View file @
b55d8f4d
"""
go/commands/test_expirelinks.py
"""
# Future Imports
from
__future__
import
unicode_literals
,
absolute_import
,
print_function
,
division
from
__future__
import
(
absolute_import
,
division
,
print_function
,
unicode_literals
)
# Python stdlib Imports
from
datetime
import
timedelta
...
...
go/go/templatetags/go_extras.py
View file @
b55d8f4d
"""
go/templatetags/go_extras.py
"""
# Future Imports
from
__future__
import
unicode_literals
,
absolute_import
,
print_function
,
division
from
__future__
import
(
absolute_import
,
division
,
print_function
,
unicode_literals
)
# Django Imports
from
django
import
template
...
...
go/go/templatetags/test_go_extras.py
View file @
b55d8f4d
"""
go/templatetags/test_go_extras.py
"""
# Future Imports
from
__future__
import
unicode_literals
,
absolute_import
,
print_function
,
division
from
__future__
import
(
absolute_import
,
division
,
print_function
,
unicode_literals
)
# Django Imports
from
django.test
import
TestCase
...
...
@@ -11,12 +16,12 @@ from go.models import RegisteredUser
class
GoExtrasTest
(
TestCase
):
"""
Test cases for the template helper functions in go_extras.py
Test cases for the template helper functions in go_extras.py
"""
def
setUp
(
self
):
"""
Create a dummy user to be tested against.
Create a dummy user to be tested against.
"""
User
.
objects
.
create
(
username
=
'dhaynes'
,
password
=
'password'
)
...
...
@@ -25,7 +30,8 @@ class GoExtrasTest(TestCase):
def
test_is_registered_false
(
self
):
"""
Test the is_registered function to see if it gives correct false answers
Test the is_registered function to see if it gives correct false
answers
"""
getUser
=
User
.
objects
.
get
(
username
=
'dhaynes'
)
...
...
@@ -38,7 +44,7 @@ class GoExtrasTest(TestCase):
def
test_is_registered_true
(
self
):
"""
Test the is_registered function to see if it gives correct true answers
Test the is_registered function to see if it gives correct true answers
"""
getUser
=
User
.
objects
.
get
(
username
=
'dhaynes'
)
...
...
@@ -53,7 +59,7 @@ class GoExtrasTest(TestCase):
def
test_is_approved_false
(
self
):
"""
Test the is_registered function to see if it gives correct false answers
Test the is_registered function to see if it gives correct false answers
"""
getUser
=
User
.
objects
.
get
(
username
=
'dhaynes'
)
...
...
@@ -67,7 +73,7 @@ class GoExtrasTest(TestCase):
def
test_is_approved_true
(
self
):
"""
Test the is_registered function to see if it gives correct true answers
Test the is_registered function to see if it gives correct true answers
"""
getUser
=
User
.
objects
.
get
(
username
=
'dhaynes'
)
...
...
go/go/test_cas_callbacks.py
View file @
b55d8f4d
# Future Imports
from
__future__
import
unicode_literals
,
absolute_import
,
print_function
,
division
from
__future__
import
(
absolute_import
,
division
,
print_function
,
unicode_literals
)
# Django Imports
from
django.test
import
TestCase
...
...
go/go/test_forms.py
View file @
b55d8f4d
...
...
@@ -6,7 +6,8 @@ References:
"""
# Future Imports
from
__future__
import
unicode_literals
,
absolute_import
,
print_function
,
division
from
__future__
import
(
absolute_import
,
division
,
print_function
,
unicode_literals
)
# Python stdlib Imports
from
datetime
import
datetime
,
timedelta
...
...
go/go/test_models.py
View file @
b55d8f4d
# Future Imports
from
__future__
import
unicode_literals
,
absolute_import
,
print_function
,
division
from
__future__
import
(
absolute_import
,
division
,
print_function
,
unicode_literals
)
# Django Imports
from
django.test
import
TestCase
...
...
go/go/test_views.py
View file @
b55d8f4d
...
...
@@ -13,9 +13,8 @@ from __future__ import (absolute_import, division, print_function,
from
django.test
import
TestCase
# App Imports
from
go.views
import
(
index
,
view
,
my_links
,
delete
,
signup
,
redirection
,
useradmin
)
from
go.views
import
(
index
,
view
,
my_links
,
delete
,
signup
,
redirection
,
useradmin
)
class
IndexTest
(
TestCase
):
"""
...
...
go/go/views.py
View file @
b55d8f4d
...
...
@@ -3,7 +3,8 @@ go/views.py
"""
# Future Imports
from
__future__
import
unicode_literals
,
absolute_import
,
print_function
,
division
from
__future__
import
(
absolute_import
,
division
,
print_function
,
unicode_literals
)
# Python stdlib imports
from
datetime
import
timedelta
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment