本文整理汇总了Python中onadata.apps.main.tests.test_base.TestBase._publish_xls_file方法的典型用法代码示例。如果您正苦于以下问题:Python TestBase._publish_xls_file方法的具体用法?Python TestBase._publish_xls_file怎么用?Python TestBase._publish_xls_file使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类onadata.apps.main.tests.test_base.TestBase
的用法示例。
在下文中一共展示了TestBase._publish_xls_file方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: _publish_transportation_id_string_starts_with_number_form
# 需要导入模块: from onadata.apps.main.tests.test_base import TestBase [as 别名]
# 或者: from onadata.apps.main.tests.test_base.TestBase import _publish_xls_file [as 别名]
def _publish_transportation_id_string_starts_with_number_form(self):
xls_path = os.path.join(self.this_directory, "fixtures",
"transportation",
"transportation.id_starts_with_num.xls")
count = XForm.objects.count()
TestBase._publish_xls_file(self, xls_path)
self.assertEqual(XForm.objects.count(), count + 1)
self.xform = XForm.objects.all().reverse()[0]
示例2: _publish_survey
# 需要导入模块: from onadata.apps.main.tests.test_base import TestBase [as 别名]
# 或者: from onadata.apps.main.tests.test_base.TestBase import _publish_xls_file [as 别名]
def _publish_survey(self):
self.this_directory = os.path.dirname(__file__)
xls_path = self._fixture_path("gps", "gps.xls")
TestBase._publish_xls_file(self, xls_path)