From b2d6de569c7bba96cd3179189ffbcee6b7a28c1f Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Mon, 19 Jul 2021 09:31:54 +0900 Subject: [PATCH] Fix unit test failures caused by type mismatch Currently unit tests are failing because of the following type mismatch detected. testtools.matchers._impl.MismatchError: '{'k2', 'k1'}' is not an instance of list This change fixes that error. Change-Id: I8ecedd341ba45d1919c9073dda8b2fc390306a52 --- mistral/tests/unit/engine/test_dataflow.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mistral/tests/unit/engine/test_dataflow.py b/mistral/tests/unit/engine/test_dataflow.py index e9feba762..da99ffcf8 100644 --- a/mistral/tests/unit/engine/test_dataflow.py +++ b/mistral/tests/unit/engine/test_dataflow.py @@ -1402,7 +1402,7 @@ class DataFlowTest(test_base.BaseTest): res = expr.evaluate('<% $.keys() %>', ctx) self.assertIsNotNone(res) - self.assertIsInstance(res, list) + self.assertIsInstance(res, set) self.assertEqual(2, len(res)) self.assertIn('k1', res) self.assertIn('k2', res)