Exemplo n.º 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)
Exemplo n.º 2
0
Arquivo: views.py Projeto: 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)
Exemplo n.º 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"
Exemplo n.º 4
0
Arquivo: views.py Projeto: 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"