andreikop / enki

A text editor for programmers
http://enki-editor.org
GNU General Public License v2.0
161 stars 38 forks source link

pylint not found in tests #216

Closed bjones1 closed 10 years ago

bjones1 commented 10 years ago

When running unit tests, I get:

test_1 (test_plugins.test_lint.Test)
File is checked after opened ... skipped 'Pylint not found'
test_2 (test_plugins.test_lint.Test)
_getPylintVersion ... skipped 'Pylint not found'
test_3 (test_plugins.test_lint.Test)

even though pylint (v1.2.1) is installed.

Changing line 17 of test_line.py to

 err = os.system('pylint --version > NUL 2>&1')

fixes it (for Windows). However, I now get a different test failure:


======================================================================
FAIL: test_1 (test_plugins.test_lint.Test)
File is checked after opened
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Users\bjones\Documents\enki_all\enki\tests\test_core\..\test_plugins\test_lint.py", line 26, in test_1
    self.assertEqual(doc.qutepart.lintMarks, {0: ('e', "Undefined variable 'asdf'")})
AssertionError: {} != {0: ('e', "Undefined variable 'asdf'")}
- {}
+ {0: ('e', "Undefined variable 'asdf'")}

----------------------------------------------------------------------
andreikop commented 10 years ago

Line 17 fix applied. Increased timeouts, now test 1 passes on my virtualbox.