Skip to content

[SC-71155] Fix TypeError in Pipelines CLI#361

Merged
mukulmurthy merged 2 commits intodatabricks:masterfrom
jon-mio:SC-71155
Feb 25, 2021
Merged

[SC-71155] Fix TypeError in Pipelines CLI#361
mukulmurthy merged 2 commits intodatabricks:masterfrom
jon-mio:SC-71155

Conversation

@jon-mio
Copy link
Copy Markdown
Contributor

@jon-mio jon-mio commented Feb 25, 2021

We were indexing by key into a string instead of a dict

Comment thread tests/pipelines/test_cli.py Outdated

result = CliRunner().invoke(cli.deploy_cli, ['--spec', path, '--pipeline-id', "fake"])
assert result.exit_code == 1
assert "ValueError" in result.stdout
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

weirdly the CliRunner does not include the ValueError exception as an object so we have to check the output directly

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of asserting "ValueError", shouldn't we assert some snippet of that helpful error message?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added more of the msg

@codecov-io
Copy link
Copy Markdown

codecov-io commented Feb 25, 2021

Codecov Report

Merging #361 (e4ad26d) into master (d531726) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #361   +/-   ##
=======================================
  Coverage   84.57%   84.57%           
=======================================
  Files          39       39           
  Lines        2730     2730           
=======================================
  Hits         2309     2309           
  Misses        421      421           
Impacted Files Coverage Δ
databricks_cli/pipelines/cli.py 88.81% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d531726...e4ad26d. Read the comment docs.

@mukulmurthy mukulmurthy merged commit 460d388 into databricks:master Feb 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants