Adds request user for rss test

This commit is contained in:
Mouse Reeve 2021-02-23 13:26:44 -08:00
parent ffe5ce7251
commit 9ac332f6cc

View file

@ -41,6 +41,7 @@ class RssFeedView(TestCase):
''' load an rss feed '''
view = rss_feed.RssFeed()
request = self.factory.get('/user/rss_user/rss')
request.user = self.user
with patch("bookwyrm.models.SiteSettings.objects.get") as site:
site.return_value = self.site
result = view(request, username=self.user.username)