From bb8cedfd8248a74bc74e2cc837830119ce93f3dc Mon Sep 17 00:00:00 2001 From: Julius Osokinas Date: Sat, 3 Nov 2018 14:31:58 +0000 Subject: [PATCH] Change test server to "localhost" when running tests --- geokey_sapelli/tests/test_views.py | 2 +- travis_ci/settings.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/geokey_sapelli/tests/test_views.py b/geokey_sapelli/tests/test_views.py index 9bf4c1b..f054f95 100644 --- a/geokey_sapelli/tests/test_views.py +++ b/geokey_sapelli/tests/test_views.py @@ -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): diff --git a/travis_ci/settings.py b/travis_ci/settings.py index b1261b0..6f1a294 100644 --- a/travis_ci/settings.py +++ b/travis_ci/settings.py @@ -19,6 +19,8 @@ } } +ALLOWED_HOSTS = ['localhost'] + INSTALLED_APPS += ( 'geokey_sapelli', )