mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-25 01:20:35 +00:00
Closer to some passing tests
This commit is contained in:
parent
ad2baf3be5
commit
9c2813545c
2 changed files with 5 additions and 4 deletions
|
@ -9,7 +9,7 @@ from bookwyrm import models
|
|||
from bookwyrm.views import rss_feed
|
||||
from bookwyrm.settings import DOMAIN
|
||||
|
||||
class RssFeed(TestCase):
|
||||
class RssFeedView(TestCase):
|
||||
''' rss feed behaves as expected '''
|
||||
def setUp(self):
|
||||
self.user = models.User.objects.create_user(
|
||||
|
@ -37,8 +37,9 @@ class RssFeed(TestCase):
|
|||
|
||||
|
||||
def test_rss_feed(self):
|
||||
view = rss_feed.RssFeed()
|
||||
request = self.factory.get('/user/rss_user/rss')
|
||||
response = RssFeed(request)
|
||||
self.assertEqual(response.status_code, 200)
|
||||
result = view(request, username=self.user.username)
|
||||
self.assertEqual(result.status_code, 200)
|
||||
self.assertEqual(False, True)
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@ class RssFeed(Feed):
|
|||
|
||||
|
||||
def items(self, obj):
|
||||
return get_activity_feed(obj, ['public', 'unlisted'])
|
||||
return get_activity_feed(obj, ['public', 'unlisted'], queryset=obj.status_set)
|
||||
|
||||
|
||||
def item_link(self, item):
|
||||
|
|
Loading…
Reference in a new issue