diff --git a/.travis.yml b/.travis.yml index 150e48978b6f17689d62fbe7b685bc977ed0bf4c..833fd59193e8e88fcae5f885dbb04c93731217ea 100644 --- a/.travis.yml +++ b/.travis.yml @@ -65,6 +65,9 @@ script: # Check for missing migrations - python manage.py makemigrations --check --noinput + # Collect static + - django-admin collectstatic --noinput + # Run tests - coverage run --source='.' manage.py test opentech diff --git a/opentech/apply/users/tests/test_oauth_access.py b/opentech/apply/users/tests/test_oauth_access.py index f28391201fd0b01effc56ff322a3e005529a20e5..c425c7f0ec4dd89964346ad51c11dc23c7d30fb4 100644 --- a/opentech/apply/users/tests/test_oauth_access.py +++ b/opentech/apply/users/tests/test_oauth_access.py @@ -13,7 +13,7 @@ class TestOAuthAccess(TestCase): oauth_page = reverse('users:oauth') response = self.client.get(oauth_page, follow=True) self.assertRedirects(response, reverse( - 'users:login') + '?next=' + reverse('users:oauth') , status_code=301, target_status_code=200) + 'users:login') + '?next=' + reverse('users:oauth'), status_code=301, target_status_code=200) @override_settings() def test_oauth_not_set_up(self):