From 74767d58b4d5efa6d7cdc14c3219acf8c398b906 Mon Sep 17 00:00:00 2001 From: Josh Temple <8672171+joshtemple@users.noreply.github.com> Date: Mon, 14 Mar 2022 21:53:24 -0400 Subject: [PATCH] Make tests work on Python 3.7 --- tests/test_cli.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/test_cli.py b/tests/test_cli.py index 761d07c3..7115e73d 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -179,7 +179,8 @@ def test_config_file_explores_folders_processed_correctly( } with patch("sys.argv", ["spectacles", "sql", "--config-file", "config.yml"]): main() - assert mock_run_sql.call_args.kwargs["filters"] == [ + + assert mock_run_sql.call_args[1]["filters"] == [ "model_a/*", "-model_a/explore_b", ] @@ -206,7 +207,7 @@ def test_cli_explores_folders_processed_correctly(mock_run_sql, clean_env): ], ): main() - assert mock_run_sql.call_args.kwargs["filters"] == [ + assert mock_run_sql.call_args[1]["filters"] == [ "model_a/*", "-model_a/explore_b", ]