Skip to content

Commit

Permalink
test(providers/databrick): fix execute_complete test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
Lee-W committed Jul 20, 2023
1 parent 72e7046 commit f5f15d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/providers/databricks/operators/test_databricks.py
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ def test_execute_complete_failure(self, db_mock_class):
op.execute_complete(context=None, event=event)

def test_execute_complete_incorrect_event_validation_failure(self):
event = {}
event = {"event_id": "no such column"}
op = DatabricksSubmitRunDeferrableOperator(task_id=TASK_ID)
with pytest.raises(AirflowException):
op.execute_complete(context=None, event=event)
Expand Down Expand Up @@ -951,7 +951,7 @@ def test_execute_complete_failure(self, db_mock_class):
op.execute_complete(context=None, event=event)

def test_execute_complete_incorrect_event_validation_failure(self):
event = {}
event = {"event_id": "no such column"}
op = DatabricksRunNowDeferrableOperator(task_id=TASK_ID, job_id=JOB_ID)
with pytest.raises(AirflowException):
op.execute_complete(context=None, event=event)

0 comments on commit f5f15d8

Please sign in to comment.