vincbeck commented on code in PR #41554:
URL: https://github.com/apache/airflow/pull/41554#discussion_r1723718574
##########
tests/providers/openai/operators/test_openai.py:
##########
@@ -43,8 +65,53 @@ def test_execute_with_input_text():
@pytest.mark.parametrize("invalid_input", ["", None, 123])
def test_execute_with_invalid_input(invalid_input):
operator = OpenAIEmbeddingOperator(
- task_id="TaskId", conn_id="test_conn_id", model="test_model",
input_text=invalid_input
+ task_id=TASK_ID, conn_id=CONN_ID, model="test_model",
input_text=invalid_input
)
context = Context()
with pytest.raises(ValueError):
operator.execute(context)
+
+
[email protected]("wait_for_completion", [True, False])
Review Comment:
My bad!
--
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]