Skip to content

Commit

Permalink
Fix test when no avatar_url comming from GitHub
Browse files Browse the repository at this point in the history
  • Loading branch information
humitos committed Dec 18, 2017
1 parent 74ee015 commit 0071407
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion readthedocs/rtd_tests/tests/test_oauth.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
absolute_import, division, print_function, unicode_literals)

import mock
from django.conf import settings
from django.contrib.auth.models import User
from django.test import TestCase

Expand Down Expand Up @@ -42,7 +43,10 @@ def test_make_project_pass(self):
self.assertEqual(repo.name, 'testrepo')
self.assertEqual(repo.full_name, 'testuser/testrepo')
self.assertEqual(repo.description, 'Test Repo')
self.assertIsNone(repo.avatar_url)
self.assertEqual(
repo.avatar_url,
settings.OAUTH_AVATAR_USER_DEFAULT_URL,
)
self.assertIn(self.user, repo.users.all())
self.assertEqual(repo.organization, self.org)
self.assertEqual(
Expand Down

0 comments on commit 0071407

Please sign in to comment.