Example #1
0
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
Example #2
0
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
Example #3
0
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
Example #4
0
 def pipeline_event_loader_args(self, dates):
     (bound_expr,) = super(
         BlazeConsensusEstimatesLoaderNotInteractiveTestCase,
         self,
     ).pipeline_event_loader_args(dates)
     return swap_resources_into_scope(bound_expr, {})
Example #5
0
 def loader_args(self, dates):
     (bound_expr,) = super(
         BlazeCashBuybackAuthLoaderNotInteractiveTestCase,
         self,
     ).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, {})
Example #7
0
 def pipeline_event_loader_args(self, dates):
     (bound_expr, ) = super(
         BlazeShareBuybackAuthLoaderNotInteractiveTestCase,
         self,
     ).pipeline_event_loader_args(dates)
     return swap_resources_into_scope(bound_expr, {})
Example #8
0
 def loader_args(self, dates):
     (bound_expr,) = super(BlazeEarningsCalendarLoaderNotInteractiveTestCase, self).loader_args(dates)
     return swap_resources_into_scope(bound_expr, {})
Example #9
0
 def loader_args(self, dates):
     (bound_expr, ) = super(
         BlazeEarningsCalendarLoaderNotInteractiveTestCase,
         self,
     ).loader_args(dates)
     return swap_resources_into_scope(bound_expr, {})
Example #10
0
 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, {})
Example #12
0
 def pipeline_event_loader_args(self, dates):
     (bound_expr,) = super(
         BlazeDividendsByPayDateLoaderNotInteractiveTestCase,
         self,
     ).pipeline_event_loader_args(dates)
     return swap_resources_into_scope(bound_expr, {})