Skip to content

Commit

Permalink
Fix stochastic test
Browse files Browse the repository at this point in the history
  • Loading branch information
adrienball committed Mar 22, 2019
1 parent 699890f commit f26f53e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions snips_nlu/tests/test_deterministic_intent_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit f26f53e

Please sign in to comment.