andreikop / enki

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

Unit test failures #329

Closed bjones1 closed 8 years ago

bjones1 commented 8 years ago

Running 76180250aec6c9e7bdc08897feb5f7c2c763df9d on Windows 7, the following failing tests both stop and wait for user input. If I click the close button on the Locator window that pops up:

======================================================================
ERROR: test_02 (test_plugins.test_workspace_commands.Test)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Users\bjones\Documents\enki_all\enki\tests\base.py", line 92, in exec
WithArgs
    func(*args)
  File "C:\Users\bjones\Documents\enki_all\enki\tests\test_lib\..\test_plugins\test_workspace_commands.py", line 54, in test_02
    self.assertEqual(core.workspace().currentDocument().filePath(), fullPath)
AttributeError: 'NoneType' object has no attribute 'filePath'

======================================================================
FAIL: test_08 (test_plugins.test_workspace_commands.Test)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Users\bjones\Documents\enki_all\enki\tests\base.py", line 92, in exec
WithArgs
    func(*args)
  File "C:\Users\bjones\Documents\enki_all\enki\tests\test_lib\..\test_plugins\test_workspace_commands.py", line 148, in test_08
    self.assertEqual(core.project().path(), self.TEST_FILE_DIR)
AssertionError: 'c:\\users\\bjones\\appdata\\local\\temp' != 'c:\\users\\bjones\\appdata\\local\\temp\\enki-tests'

----------------------------------------------------------------------
Ran 295 tests in 127.811s

FAILED (failures=1, errors=1, skipped=14, expected failures=3)
andreikop commented 8 years ago

Fixed. Now Locator and fuzzy works on Windows.

bjones1 commented 8 years ago

Great, thanks. That fixed it.