From 5b8c31451f6c148aea071d6326f0a1fa71fe2c3e Mon Sep 17 00:00:00 2001 From: Gil Forcada Date: Tue, 16 Feb 2016 23:01:49 +0100 Subject: [PATCH] Fix tests --- run_tests.py | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/run_tests.py b/run_tests.py index bd6722b..d8a083f 100644 --- a/run_tests.py +++ b/run_tests.py @@ -49,7 +49,10 @@ def test_sorted_incorrectly(self): self.assertEqual(len(ret), 1) self.assertEqual(ret[0][0], 0) self.assertEqual(ret[0][1], 0) - self.assertEqual(ret[0][2], 'I001 found unsorted imports') + self.assertEqual( + ret[0][2], + 'I001 isort found changes, run it on the file' + ) def test_isortcfg_found(self): # _given_a_file_in_test_dir already creates an .isort.cfg file @@ -65,7 +68,10 @@ def test_isortcfg_found(self): self.assertEqual(len(ret), 1) self.assertEqual(ret[0][0], 0) self.assertEqual(ret[0][1], 0) - self.assertEqual(ret[0][2], 'I001 found unsorted imports') + self.assertEqual( + ret[0][2], + 'I001 isort found changes, run it on the file' + ) def test_isortcfg_not_found(self): file_path = self._given_a_file_in_test_dir( @@ -85,7 +91,11 @@ def test_isortcfg_not_found(self): self.assertEqual(len(ret), 1) self.assertEqual(ret[0][0], 0) self.assertEqual(ret[0][1], 0) - self.assertEqual(ret[0][2], 'I002 no .isort.cfg file found') + self.assertEqual( + ret[0][2], + 'I002 no configuration found (.isort.cfg or [isort] on ' + 'setup.cfg)' + ) def test_default_option(self): """By default a config file (.isort.cfg) is expected"""