Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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, {})
Exemplo n.º 5
0
 def loader_args(self, dates):
     (bound_expr,) = super(
         BlazeCashBuybackAuthLoaderNotInteractiveTestCase,
         self,
     ).loader_args(dates)
     return swap_resources_into_scope(bound_expr, {})
Exemplo n.º 6
0
 def loader_args(self, dates):
     (bound_expr,) = super(
         BlazeCashBuybackAuthLoaderNotInteractiveTestCase,
         self,
     ).loader_args(dates)
     return swap_resources_into_scope(bound_expr, {})
Exemplo n.º 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, {})
Exemplo n.º 8
0
 def loader_args(self, dates):
     (bound_expr,) = super(BlazeEarningsCalendarLoaderNotInteractiveTestCase, self).loader_args(dates)
     return swap_resources_into_scope(bound_expr, {})
Exemplo n.º 9
0
 def loader_args(self, dates):
     (bound_expr, ) = super(
         BlazeEarningsCalendarLoaderNotInteractiveTestCase,
         self,
     ).loader_args(dates)
     return swap_resources_into_scope(bound_expr, {})
Exemplo n.º 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, {})
Exemplo n.º 11
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, {})
Exemplo n.º 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, {})