def setup_method(self, method):
     DeclarativeTestCase.setup_method(self, method)
     article = self.Article(
         description=u'Some description',
         name=u'Some name'
     )
     self.session.add(article)
     self.session.commit()
     self.session.expunge_all()
Exemplo n.º 2
0
 def setup_method(self, method):
     DeclarativeTestCase.setup_method(self, method)
     article = self.Article(
         description=u'Some description',
         name=u'Some name'
     )
     self.session.add(article)
     self.session.commit()
     self.session.expunge_all()
Exemplo n.º 3
0
    def setup_method(self, method):
        DeclarativeTestCase.setup_method(self, method)
        self.ArticleTranslation = self.Article.__translatable__['class']

        article = self.Article(
            description=u'Some description',
            name=u'Some name'
        )
        self.session.add(article)
        self.session.commit()
 def setup_method(self, method):
     DeclarativeTestCase.setup_method(self, method)
     translation_manager.options['auto_created_locales'] = [u'fi', u'en']