From f26f53eaff0b1db299864b2b774366d16afa35cd Mon Sep 17 00:00:00 2001 From: Adrien Ball Date: Fri, 22 Mar 2019 19:05:44 +0100 Subject: [PATCH] Fix stochastic test --- snips_nlu/tests/test_deterministic_intent_parser.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/snips_nlu/tests/test_deterministic_intent_parser.py b/snips_nlu/tests/test_deterministic_intent_parser.py index 0353dca7a..39750075d 100644 --- a/snips_nlu/tests/test_deterministic_intent_parser.py +++ b/snips_nlu/tests/test_deterministic_intent_parser.py @@ -147,8 +147,7 @@ def test_should_parse_top_intents(self): extraction_result(intent_classification_result( intent_name="intent2", probability=0.5), [slot]) ] - expected_results = sorted(expected_results, - key=lambda r: r[RES_INTENT][RES_INTENT_NAME]) + results = sorted(results, key=lambda r: r[RES_INTENT][RES_INTENT_NAME]) self.assertEqual(expected_results, results) @patch("snips_nlu.intent_parser.deterministic_intent_parser"