dirrao commented on code in PR #39928:
URL: https://github.com/apache/airflow/pull/39928#discussion_r1621014856


##########
tests/providers/weaviate/operators/test_weaviate.py:
##########
@@ -33,12 +34,16 @@
 class TestWeaviateIngestOperator:
     @pytest.fixture
     def operator(self):
-        return WeaviateIngestOperator(
-            task_id="weaviate_task",
-            conn_id="weaviate_conn",
-            class_name="my_class",
-            input_json=[{"data": "sample_data"}],
-        )
+        with pytest.warns(
+            AirflowProviderDeprecationWarning,
+            match="Passing 'input_json' to WeaviateIngestOperator is 
deprecated and you should use 'input_data' instead",
+        ):
+            return WeaviateIngestOperator(
+                task_id="weaviate_task",
+                conn_id="weaviate_conn",
+                class_name="my_class",
+                input_json=[{"data": "sample_data"}],
+            )

Review Comment:
   Thanks. I have updated as per your comment.



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