jedcunningham commented on code in PR #77472:
URL: https://github.com/apache/airflow/pull/77472#discussion_r4688172234


##########
airflow-core/tests/unit/jobs/test_triggerer_job.py:
##########
@@ -6195,3 +6195,103 @@ def test_caller_finished_ids_not_mutated(self):
         runner.process_trigger_events(finished_ids=finished_ids)
 
         assert finished_ids == [10]
+
+
+class TestEncryptPlaintextTriggerKwargs:
+    """Tests that plaintext trigger kwargs are encrypted in place when picked 
up by the triggerer."""
+
+    @staticmethod
+    def _attach_trigger_to_asset(session, trigger: Trigger, suffix: str) -> 
int:
+        from airflow.models.asset import AssetModel, AssetWatcherModel

Review Comment:
   nit: some of the imports inside these tests are already at the top of the 
module:
   - `json` (L26)
   - `patch` (L41)
   - `AssetModel` (L88)
   
   Could you drop those, and move `AssetWatcherModel` and `serialize` up to the 
module imports as well? The repo prefers module-level imports.



-- 
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