From 497527f188807466e9ac2dd9e50163672536b4ec Mon Sep 17 00:00:00 2001 From: Kshitij Aranke Date: Thu, 2 Feb 2023 16:54:40 -0800 Subject: [PATCH] Fix CLI vars test to check for object instead of string --- .changes/unreleased/Under the Hood-20230202-165707.yaml | 6 ++++++ tests/functional/context_methods/test_cli_vars.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 .changes/unreleased/Under the Hood-20230202-165707.yaml diff --git a/.changes/unreleased/Under the Hood-20230202-165707.yaml b/.changes/unreleased/Under the Hood-20230202-165707.yaml new file mode 100644 index 00000000000..72cc0c06f19 --- /dev/null +++ b/.changes/unreleased/Under the Hood-20230202-165707.yaml @@ -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: ' ' diff --git a/tests/functional/context_methods/test_cli_vars.py b/tests/functional/context_methods/test_cli_vars.py index 353d96d777b..5f5b222f5da 100644 --- a/tests/functional/context_methods/test_cli_vars.py +++ b/tests/functional/context_methods/test_cli_vars.py @@ -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: