Skip to content

Commit

Permalink
Merge pull request #923 from DalgoT4D/pass-the-cron-to-prefect
Browse files Browse the repository at this point in the history
pass the cron to prefect
  • Loading branch information
himanshudube97 authored Dec 20, 2024
2 parents 66f4d37 + 3944cda commit be09521
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions ddpui/management/commands/createedrsendreportdataflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ def create_dataflow(self, org: Org, org_task: OrgTask, cron: str):
"org_slug": org_task.org.slug,
}
},
cron=cron,
),
MANUL_DBT_WORK_QUEUE,
)
Expand Down
5 changes: 4 additions & 1 deletion ddpui/tests/services/test_prefect_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,10 @@ def test_create_airbyte_server_block(mock_post: Mock):
assert response == ("the-block-id", "theblockname")


def test_update_airbyte_server_block():
@patch("ddpui.ddpprefect.prefect_service.prefect_put")
def test_update_airbyte_server_block(mock_put: Mock):
"""tests update_airbyte_server_block"""
mock_put.side_effect = Exception("not implemented")
with pytest.raises(Exception) as excinfo:
update_airbyte_server_block("blockname")
assert str(excinfo.value) == "not implemented"
Expand Down

0 comments on commit be09521

Please sign in to comment.