def test_swap_resources_into_scope(): from blaze import data t = data([1, 2, 3], dshape='3 * int', name='t') scope = swap_resources_into_scope(t.head(2), {}) assert t._resources() assert t in scope
def test_swap_resources_into_scope(): from blaze import Data t = Data([1, 2, 3], dshape='3 * int', name='t') expr, scope = swap_resources_into_scope(t.head(2), {t: t.data}) assert t._resources() assert not expr._resources() assert t not in scope
def pipeline_event_loader_args(self, dates): (bound_expr,) = super( BlazeConsensusEstimatesLoaderNotInteractiveTestCase, self, ).pipeline_event_loader_args(dates) return swap_resources_into_scope(bound_expr, {})
def loader_args(self, dates): (bound_expr,) = super( BlazeCashBuybackAuthLoaderNotInteractiveTestCase, self, ).loader_args(dates) return swap_resources_into_scope(bound_expr, {})
def pipeline_event_loader_args(self, dates): (bound_expr, ) = super( BlazeShareBuybackAuthLoaderNotInteractiveTestCase, self, ).pipeline_event_loader_args(dates) return swap_resources_into_scope(bound_expr, {})
def loader_args(self, dates): (bound_expr,) = super(BlazeEarningsCalendarLoaderNotInteractiveTestCase, self).loader_args(dates) return swap_resources_into_scope(bound_expr, {})
def loader_args(self, dates): (bound_expr, ) = super( BlazeEarningsCalendarLoaderNotInteractiveTestCase, self, ).loader_args(dates) return swap_resources_into_scope(bound_expr, {})
def pipeline_event_loader_args(self, dates): (bound_expr, ) = super( BlazeDividendsByPayDateLoaderNotInteractiveTestCase, self, ).pipeline_event_loader_args(dates) return swap_resources_into_scope(bound_expr, {})
def pipeline_event_loader_args(self, dates): (bound_expr,) = super( BlazeShareBuybackAuthLoaderNotInteractiveTestCase, self, ).pipeline_event_loader_args(dates) return swap_resources_into_scope(bound_expr, {})
def pipeline_event_loader_args(self, dates): (bound_expr,) = super( BlazeDividendsByPayDateLoaderNotInteractiveTestCase, self, ).pipeline_event_loader_args(dates) return swap_resources_into_scope(bound_expr, {})