mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-23 08:36:32 +00:00
Adds request user for rss test
This commit is contained in:
parent
ffe5ce7251
commit
9ac332f6cc
1 changed files with 1 additions and 0 deletions
|
@ -41,6 +41,7 @@ class RssFeedView(TestCase):
|
||||||
''' load an rss feed '''
|
''' load an rss feed '''
|
||||||
view = rss_feed.RssFeed()
|
view = rss_feed.RssFeed()
|
||||||
request = self.factory.get('/user/rss_user/rss')
|
request = self.factory.get('/user/rss_user/rss')
|
||||||
|
request.user = self.user
|
||||||
with patch("bookwyrm.models.SiteSettings.objects.get") as site:
|
with patch("bookwyrm.models.SiteSettings.objects.get") as site:
|
||||||
site.return_value = self.site
|
site.return_value = self.site
|
||||||
result = view(request, username=self.user.username)
|
result = view(request, username=self.user.username)
|
||||||
|
|
Loading…
Reference in a new issue