Skip to content

Commit

Permalink
Merge pull request #3958 from italia/fixsometestswithpostgres
Browse files Browse the repository at this point in the history
Fix some tests with postgres
  • Loading branch information
ericholscher committed Apr 18, 2018
2 parents 70ffa2f + 119ec94 commit 4f6123b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion readthedocs/rtd_tests/tests/test_api.py
Expand Up @@ -12,6 +12,7 @@
from django.contrib.auth.models import User
from django.core.urlresolvers import reverse
from django.test import TestCase
from django.utils import six
from django_dynamic_fixture import get
from rest_framework import status
from rest_framework.test import APIClient
Expand Down Expand Up @@ -247,7 +248,8 @@ def test_project_features(self):
resp = client.get('/api/v2/project/%s/' % (project.pk))
self.assertEqual(resp.status_code, 200)
self.assertIn('features', resp.data)
self.assertEqual(
six.assertCountEqual(
self,
resp.data['features'],
[feature1.feature_id, feature2.feature_id],
)
Expand Down
2 changes: 1 addition & 1 deletion readthedocs/rtd_tests/tests/test_notifications.py
Expand Up @@ -80,7 +80,7 @@ class TestNotification(Notification):
request=mock.ANY,
template='core/email/common.txt',
context={'content': 'Test'},
subject=u'This is 1',
subject=u'This is {}'.format(build.id),
template_html='core/email/common.html',
recipient=user.email,
)
Expand Down

0 comments on commit 4f6123b

Please sign in to comment.