Skip to content

Commit

Permalink
fixed tests and imports
Browse files Browse the repository at this point in the history
  • Loading branch information
bjinwright committed Apr 26, 2017
1 parent 4ec2c07 commit 6f567e8
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 7 deletions.
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ language: python
python:
- "2.7"
# command to install dependencies
install:
- "pip install nose coverage"
install:
- "pip install -r requirements.txt"
# command to run tests
before_script: cd cdu
Expand Down
2 changes: 1 addition & 1 deletion cdu/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@

urlpatterns = [
url(r'^admin/', admin.site.urls),
url(r'^accounts/', include('warrant.django.urls'))
url(r'^accounts/', include('django_warrant.urls'))
]
2 changes: 1 addition & 1 deletion django_warrant/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from django.utils.six import iteritems

from django_warrant.backend import CognitoBackend, CognitoUser
from django_warrant.django.middleware import APIKeyMiddleware
from django_warrant.middleware import APIKeyMiddleware
from warrant import Cognito

def set_tokens(cls, *args, **kwargs):
Expand Down
4 changes: 2 additions & 2 deletions django_warrant/views/profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
from django.contrib import messages
from django.conf import settings

from warrant.django.utils import get_cognito
from warrant.django.forms import ProfileForm
from django_warrant.utils import get_cognito
from django_warrant.forms import ProfileForm


class TokenMixin(AccessMixin):
Expand Down
2 changes: 1 addition & 1 deletion django_warrant/views/subscriptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

from django.conf import settings
from warrant import UserObj, Cognito
from warrant.django.forms import APIKeySubscriptionForm
from django_warrant.forms import APIKeySubscriptionForm


class GetCognitoUserMixin(object):
Expand Down

0 comments on commit 6f567e8

Please sign in to comment.