示例#1
0
 def setUp(self):
     self.site = Site.objects.get_current()
     self.feed = FeedFactory.create(title="Feed-1", site=self.site)
     self.post = PostFactory.create(feed=self.feed)
示例#2
0
文件: views.py 项目: Berjees/VEA
 def setUp(self):
     self.site = Site.objects.get_current()
     self.feed = FeedFactory.create(title="Feed-1", site=self.site)
     self.post = PostFactory.create(feed=self.feed)
示例#3
0
 def setUp(self):
     self.site = Site.objects.get_current()
     self.feed = FeedFactory.create(title="Feed-1", site=self.site)
     self.author = AuthorFactory.create(name="Author-1")
     self.post = PostFactory.create(feed=self.feed, authors=[self.author])
     self.post.tags = "tag1, tag2"
示例#4
0
文件: views.py 项目: Berjees/VEA
 def setUp(self):
     self.site = Site.objects.get_current()
     self.feed = FeedFactory.create(title="Feed-1", site=self.site)
     self.author = AuthorFactory.create(name="Author-1")
     self.post = PostFactory.create(feed=self.feed, authors=[self.author])
     self.post.tags = "tag1, tag2"