From 08acc438fdce2d9ea38e972c870c6adeae906734 Mon Sep 17 00:00:00 2001 From: Artur Barseghyan Date: Wed, 15 Jan 2020 00:38:54 +0100 Subject: [PATCH] Travis fix attempt --- .travis.yml | 3 +++ src/fobi/tests/test_core.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 54308fe5..7ddd7afe 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,6 +11,9 @@ sudo: true addons: chrome: stable + hosts: + - localhost + - 127.0.0.1 matrix: fast_finish: true diff --git a/src/fobi/tests/test_core.py b/src/fobi/tests/test_core.py index 5921d24f..fe8f8e15 100644 --- a/src/fobi/tests/test_core.py +++ b/src/fobi/tests/test_core.py @@ -85,7 +85,7 @@ class FobiCoreTest(TestCase): 'action': action_url, } ) - request.META['SERVER_NAME'] = '127.0.0.1' + request.META['SERVER_NAME'] = 'localhost' form = FormEntryForm( request.POST, request=request,