Пример #1
0
 def test_resolve_xcom_class_fallback_to_basexcom_no_config(self):
     init = conf.get("core", "xcom_backend")
     conf.remove_option("core", "xcom_backend")
     cls = resolve_xcom_backend()
     assert issubclass(cls, BaseXCom)
     assert cls().serialize_value([1]) == b"[1]"
     conf.set("core", "xcom_backend", init)
Пример #2
0
 def test_resolve_xcom_class_fallback_to_basexcom(self):
     cls = resolve_xcom_backend()
     assert issubclass(cls, BaseXCom)
     assert cls().serialize_value([1]) == b"[1]"
Пример #3
0
 def test_resolve_xcom_class(self):
     cls = resolve_xcom_backend()
     assert issubclass(cls, CustomXCom)
     assert cls().serialize_value(None) == "custom_value"