artsntech commented on code in PR #77472:
URL: https://github.com/apache/airflow/pull/77472#discussion_r4692690618
##########
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:
Done! Moved AssetWatcherModel and serialize to the module-level imports and
removed the duplicate inline 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]