Пример #1
0
 def _run_direct(self, app_conf, **kwds):
     with test_pulsar_app({}, app_conf, {}) as app:
         options = Bunch(job_manager=next(itervalues(app.app.managers)),
                         file_cache=app.app.file_cache,
                         **kwds)
         self._update_options_for_app(options, app.app, **kwds)
         run(options)
Пример #2
0
 def _run_in_test_server(self, app_conf, **kwds):
     with test_pulsar_server(app_conf=app_conf) as server:
         options = Bunch(url=server.application_url, **kwds)
         # TODO: sync Py 2 v 3 approach so following hack is unneeded.
         app = server.test_app
         if hasattr(app, "application"):
             app = app.application
         self._update_options_for_app(options, app, **kwds)
         run(options)
Пример #3
0
 def _run_in_test_server(self, app_conf, **kwds):
     with test_pulsar_server(app_conf=app_conf) as server:
         options = Bunch(url=server.application_url, **kwds)
         # TODO: sync Py 2 v 3 approach so following hack is unneeded.
         app = server.test_app
         if hasattr(app, "application"):
             app = app.application
         self._update_options_for_app(options, app, **kwds)
         run(options)
Пример #4
0
 def _run_direct(self, app_conf, **kwds):
     with test_pulsar_app({}, app_conf, {}) as app:
         options = Bunch(job_manager=next(itervalues(app.app.managers)), file_cache=app.app.file_cache, **kwds)
         self._update_options_for_app(options, app.app, **kwds)
         run(options)
Пример #5
0
 def _run_in_test_server(self, app_conf, **kwds):
     with test_pulsar_server(app_conf=app_conf) as server:
         options = Bunch(url=server.application_url, **kwds)
         self._update_options_for_app(options, server.test_app.application, **kwds)
         run(options)
Пример #6
0
 def _run_in_test_server(self, app_conf, **kwds):
     with test_pulsar_server(app_conf=app_conf) as server:
         options = Bunch(url=server.application_url, **kwds)
         self._update_options_for_app(options, server.test_app.application,
                                      **kwds)
         run(options)