本文整理汇总了Python中arctic.tickstore.toplevel.TopLevelTickStore._get_library_metadata方法的典型用法代码示例。如果您正苦于以下问题:Python TopLevelTickStore._get_library_metadata方法的具体用法?Python TopLevelTickStore._get_library_metadata怎么用?Python TopLevelTickStore._get_library_metadata使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类arctic.tickstore.toplevel.TopLevelTickStore
的用法示例。
在下文中一共展示了TopLevelTickStore._get_library_metadata方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_raise_exception_if_date_range_does_not_contain_start_and_end_date
# 需要导入模块: from arctic.tickstore.toplevel import TopLevelTickStore [as 别名]
# 或者: from arctic.tickstore.toplevel.TopLevelTickStore import _get_library_metadata [as 别名]
def test_raise_exception_if_date_range_does_not_contain_start_and_end_date():
store = TopLevelTickStore(Mock())
dr = DateRange(start=None, end=None)
with pytest.raises(Exception) as e:
store._get_library_metadata(dr)
assert "The date range {0} must contain a start and end date".format(dr) in str(e)
示例2: test_raise_exception_if_daterange_is_not_provided
# 需要导入模块: from arctic.tickstore.toplevel import TopLevelTickStore [as 别名]
# 或者: from arctic.tickstore.toplevel.TopLevelTickStore import _get_library_metadata [as 别名]
def test_raise_exception_if_daterange_is_not_provided():
store = TopLevelTickStore(Mock())
with pytest.raises(Exception) as e:
store._get_library_metadata(None)
assert "A date range must be provided" in str(e)