MCPcopy
hub / github.com/celery/celery / test_setting__broker_transport_options

Method test_setting__broker_transport_options

t/unit/app/test_app.py:1048–1057  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1046 assert self.app.conf.database_engine_options == {'foo': 'bar'}
1047
1048 def test_setting__broker_transport_options(self):
1049
1050 _args = {'foo': 'bar', 'spam': 'baz'}
1051
1052 self.app.config_from_object(Bunch())
1053 assert self.app.conf.broker_transport_options == \
1054 {'polling_interval': 0.1}
1055
1056 self.app.config_from_object(Bunch(broker_transport_options=_args))
1057 assert self.app.conf.broker_transport_options == _args
1058
1059 def test_Windows_log_color_disabled(self):
1060 self.app.IS_WINDOWS = True

Callers

nothing calls this directly

Calls 2

BunchClass · 0.90
config_from_objectMethod · 0.45

Tested by

no test coverage detected