Skip to content

Commit

Permalink
Fixing comments
Browse files Browse the repository at this point in the history
  • Loading branch information
geonexus committed Sep 23, 2015
1 parent b0c4168 commit e01d10b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
7 changes: 5 additions & 2 deletions fiware_cloto/cloto/tests/test_wsgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,15 @@ def mock_get_wsgi_app():
def test_bad_module(self):
with six.assertRaisesRegex(self,
ImproperlyConfigured,
r"WSGI application 'fiware_cloto.cloto.wsgi.noexist.app' could not be loaded; Error importing module: 'No module named noexist'"):
r"WSGI application 'fiware_cloto.cloto.wsgi.noexist.app' could not be loaded; "
r"Error importing module: 'No module named noexist'"):
get_internal_wsgi_application()

@override_settings(WSGI_APPLICATION="fiware_cloto.cloto.wsgi.noexist")
def test_bad_name(self):
with six.assertRaisesRegex(self,
ImproperlyConfigured,
r"WSGI application 'fiware_cloto.cloto.wsgi.noexist' could not be loaded; Error importing module: 'Module \"fiware_cloto.cloto.wsgi\" does not define a \"noexist\" attribute/class'"):
r"WSGI application 'fiware_cloto.cloto.wsgi.noexist'"
r" could not be loaded; Error importing module: 'Module \"fiware_cloto.cloto.wsgi\""
r" does not define a \"noexist\" attribute/class'"):
get_internal_wsgi_application()
2 changes: 1 addition & 1 deletion fiware_cloto/cloto/tests/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

from django.test import TestCase
from django.test.client import RequestFactory
from mockito import *
from mockito import mock, when
from mock import patch
from fiware_cloto.cloto.manager import InfoManager
from fiware_cloto.cloto import information
Expand Down
2 changes: 1 addition & 1 deletion fiware_cloto/cloto/wsgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
try:
s.save()
except Exception as ex:
logger.error(ex)
logger.error("Error saving initial server data into DB while server was starting: %s", ex)


# Starting environments Controller
Expand Down

0 comments on commit e01d10b

Please sign in to comment.