From 0f6ef229bb464a405b5b6b119be6fe0543e54b28 Mon Sep 17 00:00:00 2001 From: Dan Braghis <dan.braghis@torchbox.com> Date: Wed, 17 Jan 2018 10:03:27 +0000 Subject: [PATCH] Lint and collectstatic for Travis --- .travis.yml | 3 +++ opentech/apply/users/tests/test_oauth_access.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 150e48978..833fd5919 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 f28391201..c425c7f0e 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): -- GitLab