Skip to content

Commit cc4bf55

Browse files
committed
- added bool return values for the N++ response where applicable
- remove code duplication - added getSettingsOnCloudPath + testcase
1 parent 49f5556 commit cc4bf55

File tree

4 files changed

+129
-144
lines changed

4 files changed

+129
-144
lines changed

PythonScript/python_tests/tests/NotepadWrapperTestCase.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1491,6 +1491,11 @@ def test_getPluginHomePath(self):
14911491
_, _, plugin_dir = notepad.getPluginHomePath().rpartition('\\')
14921492
self.assertTrue('plugins' == plugin_dir)
14931493

1494+
def test_getSettingsOnCloudPath(self):
1495+
''' Check if cloud path last part has default empty '''
1496+
self.__test_invalid_parameter_passed(notepad.getSettingsOnCloudPath)
1497+
_, _, cloud_dir = notepad.getSettingsOnCloudPath().rpartition('\\')
1498+
self.assertTrue('' == cloud_dir)
14941499

14951500
if __name__ == '__main__':
14961501
suite = unittest.TestLoader().loadTestsFromTestCase(NotepadTestCase)

0 commit comments

Comments
 (0)