From 27b05efaad29d0a650be742d02008328cf89a68b Mon Sep 17 00:00:00 2001 From: Quigley Malcolm Date: Mon, 25 Sep 2023 08:18:04 -0700 Subject: [PATCH] Fix unit test for unparsed metric objects The `assert_symmetric` function asserts that dictionaries are mostly equivalent. I say mostly equivalent because it drops keys that are `None`. The issue is that that `join_to_timespine` gets defaulted to `False`, so we have to specify it in the `get_ok_dict` so that they match. --- tests/unit/test_contracts_graph_unparsed.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/unit/test_contracts_graph_unparsed.py b/tests/unit/test_contracts_graph_unparsed.py index 7f29937a007..fbf23a082c7 100644 --- a/tests/unit/test_contracts_graph_unparsed.py +++ b/tests/unit/test_contracts_graph_unparsed.py @@ -858,6 +858,7 @@ def get_ok_dict(self): "measure": { "name": "customers", "filter": "is_new = true", + "join_to_timespine": False, }, }, "config": {},