andreikop / enki

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

Failing unit tests #426

Closed bjones1 closed 7 years ago

bjones1 commented 7 years ago

I've been putting a lot of effort into porting the preview plugin to use QWebEngine. I've now got almost everything working, but I'm seeing a failing in CI that seems unrelated. @andreikop, do you have time to take a look? See Travis and Appveyor runs. (This is on my branch).

======================================================================
FAIL: test_1 (test_plugins.test_lint.Test)
File is checked after opened
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/travis/build/bjones1/enki/tests/test_lib/../test_plugins/test_lint.py", line 36, in test_1
    self.assertEqual(doc.qutepart.lintMarks, {})
AssertionError: {0: ('e', "F821 undefined name 'asdf'"), 1[37 chars]le')} != {}
+ {}
- {0: ('e', "F821 undefined name 'asdf'"),
-  1: ('w', 'W391 blank line at end of file')}
andreikop commented 7 years ago

I"ll try later today. But I'm not sure

andreikop commented 7 years ago

I've disabled tests which rely on flake8 output. Such a tests might behave different on different flake8 versions.

bjones1 commented 7 years ago

Sounds good. Thanks for taking a look!