dshvedchenko commented on issue #54768:
URL: https://github.com/apache/airflow/issues/54768#issuecomment-3210002836

   thanks for posting it here @ashb 
   here is pytest code
   ```python
   def test_getconn():
       from airflow.sdk.execution_time.comms import MaskSecret, _RequestFrame
       import attrs
   
       msg = MaskSecret(value=dict(a="df"), name=None)
   
       @attrs.define
       class CM:
           """Context manager to simulate sending a message."""
           id_counter: Iterator[int] = attrs.field(factory=itertools.count)
   
           def send(self, msg):
               frame = _RequestFrame(id=next(self.id_counter), 
body=msg.model_dump())
               frame.as_bytes()
   
       CM().send(msg)
   
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to