Skip to content

Commit

Permalink
Fix another test
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Prescod committed Jan 16, 2023
1 parent 15cfc6e commit 1cdc345
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cumulusci/tasks/sample_data/test_load_sample_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,13 @@ def test_simple_extract(
org_config,
):
with setup_test(org_config):
org_config.config["config_name"] = "dev"
task = create_task(LoadSampleData, {"ignore_row_errors": True})
task()
print(Dataset.mock_calls)
# default dataset should be opened
Dataset.assert_any_call("default", mock.ANY, mock.ANY, org_config, mock.ANY)
Dataset.assert_any_call(
org_config.config_name, mock.ANY, mock.ANY, org_config, mock.ANY
)
# and loaded
Dataset().__enter__().load.assert_called_with(
{"ignore_row_errors": True}, task.logger
Expand Down

0 comments on commit 1cdc345

Please sign in to comment.