Skip to content

Commit

Permalink
Fix CLI vars test to check for object instead of string
Browse files Browse the repository at this point in the history
  • Loading branch information
aranke committed Feb 3, 2023
1 parent 0503c14 commit 497527f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .changes/unreleased/Under the Hood-20230202-165707.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
kind: Under the Hood
body: Fix CLI vars test to check for object instead of string
time: 2023-02-02T16:57:07.541956-08:00
custom:
Author: aranke
Issue: ' '
2 changes: 1 addition & 1 deletion tests/functional/context_methods/test_cli_vars.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def test__cli_vars_longer(self, project):
results = run_dbt(["test", "--vars", "{simple: abc, unused: def}"])
assert len(results) == 1
run_results = get_artifact(project.project_root, "target", "run_results.json")
assert run_results["args"]["vars"] == "{simple: abc, unused: def}"
assert run_results["args"]["vars"] == {"simple": "abc", "unused": "def"}


class TestCLIVarsProfile:
Expand Down

0 comments on commit 497527f

Please sign in to comment.