Skip to content
Snippets Groups Projects
Commit 0f6ef229 authored by Dan Braghis's avatar Dan Braghis
Browse files

Lint and collectstatic for Travis

parent 69f89f57
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
......@@ -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):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment