Skip to content

Commit

Permalink
Fixed tests to use messages middleware and flake8
Browse files Browse the repository at this point in the history
Signed-off-by: Macartur Sousa <macartur.sc@gmail.com>
  • Loading branch information
macartur committed Apr 12, 2016
1 parent 4ce0d56 commit 5b42626
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion src/colab_gitlab/widgets/profile/profile.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from django.utils.translation import ugettext_lazy as _
from django.conf import settings
from django.contrib import messages
from colab_gitlab.views import GitlabProxyView, GitlabProfileProxyView
from colab.widgets.profile_widget import ProfileWidget
Expand Down
1 change: 1 addition & 0 deletions tests/test_profile_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ class WidgetsTest(TestCase):
def setUp(self):
self.profile_widget = GitlabProfileWidget()
self.current_request = HttpRequest()
self.current_request.COOKIES['_gitlab_session'] = 'sampleuser'
self.current_request.method = 'POST'

self.http_response = HttpResponse()
Expand Down

0 comments on commit 5b42626

Please sign in to comment.