Skip to content

Commit

Permalink
Change test server to "localhost" when running tests
Browse files Browse the repository at this point in the history
  • Loading branch information
josokinas committed Nov 3, 2018
1 parent fbb0847 commit bb8cedf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion geokey_sapelli/tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ def setUp(self):
self.request = HttpRequest()
self.request.method = 'GET'
# necessary for request.build_absolute_uri() to work:
self.request.META['SERVER_NAME'] = 'test-server'
self.request.META['SERVER_NAME'] = 'localhost'
self.request.META['SERVER_PORT'] = '80'

def tearDown(self):
Expand Down
2 changes: 2 additions & 0 deletions travis_ci/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
}
}

ALLOWED_HOSTS = ['localhost']

INSTALLED_APPS += (
'geokey_sapelli',
)
Expand Down

0 comments on commit bb8cedf

Please sign in to comment.