Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(22)  |  Call(22)  |  Derive(0)  |  Import(0)
Update the object. The result of `update_function` is passed to the
`update_callback` function.

src/t/u/turses-0.2.22/turses/core.py   turses(Download)
                            update_function_args=update_args,
                            update_function_kwargs=update_kwargs)
        timeline.update()
        timeline.activate_first()
        self.timelines.append_timeline(timeline)

src/t/u/turses-HEAD/turses/core.py   turses(Download)
                            update_function_args=update_args,
                            update_function_kwargs=update_kwargs)
        timeline.update()
        timeline.activate_first()
        self.timelines.append_timeline(timeline)

src/t/u/turses-HEAD/tests/test_models.py   turses(Download)
    def test_update_with_no_args(self):
        mock = MagicMock(name='update')
        timeline = Timeline(update_function=mock,)
 
        timeline.update()
                            update_function_args=arg)
 
        timeline.update()
 
        mock.assert_called_once_with(arg)
        timeline = Timeline(update_function=mock,
                            update_function_args=args)
        timeline.update()
 
        args = list(args)
        timeline = Timeline(update_function=mock,
                            update_function_kwargs=kwargs)
        timeline.update()
 
        mock.assert_called_once_with(**kwargs)
                            update_function_args=args,
                            update_function_kwargs=kwargs)
        timeline.update()
 
        args = list(args)

src/t/u/turses-0.2.22/tests/test_models.py   turses(Download)
    def test_update_with_no_args(self):
        mock = MagicMock(name='update')
        timeline = Timeline(update_function=mock,)
 
        timeline.update()
                            update_function_args=arg)
 
        timeline.update()
 
        mock.assert_called_once_with(arg)
        timeline = Timeline(update_function=mock,
                            update_function_args=args)
        timeline.update()
 
        args = list(args)
        timeline = Timeline(update_function=mock,
                            update_function_kwargs=kwargs)
        timeline.update()
 
        mock.assert_called_once_with(**kwargs)
                            update_function_args=args,
                            update_function_kwargs=kwargs)
        timeline.update()
 
        args = list(args)