Skip to content

Commit

Permalink
Fixes Travis geonode-selenium build
Browse files Browse the repository at this point in the history
  • Loading branch information
afabiani committed Feb 21, 2019
1 parent 04ce54c commit 09cc694
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -196,9 +196,8 @@ before_script:
true;
else
echo "Initialize DB";
sudo apt install postgresql-9.6-postgis-2.4;
psql -U postgres -c "create extension postgis";
chmod +x scripts/misc/create_dbs_travis.sh
chmod +x scripts/misc/create_dbs_travis.sh;
scripts/misc/create_dbs_travis.sh before_script;
echo "For GeoServer Server Travis steps";
scripts/misc/geoserver_server_setup.sh before_script;
Expand Down
4 changes: 2 additions & 2 deletions geonode/proxy/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def test_validate_host_disabled_in_debug(self):
(self.proxy_url, self.url))
# 404 - NOT FOUND
if response.status_code != 404:
self.assertEqual(response.status_code, 200)
self.assertTrue(response.status_code in (200, 301))

@override_settings(DEBUG=False, PROXY_ALLOWED_HOSTS=())
def test_validate_host_disabled_not_in_debug(self):
Expand All @@ -71,4 +71,4 @@ def test_proxy_allowed_host(self):
(self.proxy_url, self.url))
# 404 - NOT FOUND
if response.status_code != 404:
self.assertEqual(response.status_code, 200)
self.assertTrue(response.status_code in (200, 301))

0 comments on commit 09cc694

Please sign in to comment.