本文整理汇总了Python中stoqlib.domain.test.domaintest.DomainTest.setUp方法的典型用法代码示例。如果您正苦于以下问题:Python DomainTest.setUp方法的具体用法?Python DomainTest.setUp怎么用?Python DomainTest.setUp使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类stoqlib.domain.test.domaintest.DomainTest
的用法示例。
在下文中一共展示了DomainTest.setUp方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: setUp
# 需要导入模块: from stoqlib.domain.test.domaintest import DomainTest [as 别名]
# 或者: from stoqlib.domain.test.domaintest.DomainTest import setUp [as 别名]
def setUp(self):
DomainTest.setUp(self)
self._base_category = SellableCategory(description=u"Cigarro",
store=self.store)
self._category = SellableCategory(description=u"Hollywood",
category=self._base_category,
suggested_markup=10,
store=self.store)
示例2: setUp
# 需要导入模块: from stoqlib.domain.test.domaintest import DomainTest [as 别名]
# 或者: from stoqlib.domain.test.domaintest.DomainTest import setUp [as 别名]
def setUp(self):
DomainTest.setUp(self)
sellable = self.create_sellable()
self.product = Product(sellable=sellable,
store=self.store)
示例3: setUp
# 需要导入模块: from stoqlib.domain.test.domaintest import DomainTest [as 别名]
# 或者: from stoqlib.domain.test.domaintest.DomainTest import setUp [as 别名]
def setUp(self):
DomainTest.setUp(self)
self.sparam = sysparam
示例4: setUp
# 需要导入模块: from stoqlib.domain.test.domaintest import DomainTest [as 别名]
# 或者: from stoqlib.domain.test.domaintest.DomainTest import setUp [as 别名]
def setUp(self):
DomainTest.setUp(self)
self.qe = QueryExecuter(self.store)
self.qe.set_search_spec(ClientCategory)
self.sfilter = mock.Mock()
self.qe.set_filter_columns(self.sfilter, ['name'])
示例5: setUp
# 需要导入模块: from stoqlib.domain.test.domaintest import DomainTest [as 别名]
# 或者: from stoqlib.domain.test.domaintest.DomainTest import setUp [as 别名]
def setUp(self):
self._unhandled_exceptions = []
self._old_hook = sys.excepthook
sys.excepthook = self._except_hook
test_system_notifier.reset()
DomainTest.setUp(self)
示例6: setUp
# 需要导入模块: from stoqlib.domain.test.domaintest import DomainTest [as 别名]
# 或者: from stoqlib.domain.test.domaintest.DomainTest import setUp [as 别名]
def setUp(self):
DomainTest.setUp(self)
self._filename = tempfile.mktemp(prefix="stoqlib-test-boleto-",
suffix=".pdf")
self._pdf_html = None
示例7: setUp
# 需要导入模块: from stoqlib.domain.test.domaintest import DomainTest [as 别名]
# 或者: from stoqlib.domain.test.domaintest.DomainTest import setUp [as 别名]
def setUp(self):
DomainTest.setUp(self)
self.branch = self.create_branch()