Skip to content

Commit

Permalink
narrow it
Browse files Browse the repository at this point in the history
  • Loading branch information
predragnikolic committed Mar 21, 2024
1 parent 7fc793e commit 9845b94
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions tests/test_configurations.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,6 @@
import unittest


class GlobalConfigManagerTests(unittest.TestCase):

def test_empty_configs(self):
window_mgr = WindowConfigManager(sublime.active_window(), {})
self.assertNotIn(TEST_CONFIG.name, window_mgr.all)

def test_global_config(self):
window_mgr = WindowConfigManager(sublime.active_window(), {TEST_CONFIG.name: TEST_CONFIG})
self.assertIn(TEST_CONFIG.name, window_mgr.all)

def test_override_config(self):
self.assertTrue(TEST_CONFIG.enabled)
win = sublime.active_window()
win.project_data = MagicMock(return_value={'settings': {'LSP': {TEST_CONFIG.name: {"enabled": False}}}})
window_mgr = WindowConfigManager(win, {TEST_CONFIG.name: TEST_CONFIG})
self.assertFalse(list(window_mgr.all.values())[0].enabled)


class WindowConfigManagerTests(unittest.TestCase):

Expand Down

0 comments on commit 9845b94

Please sign in to comment.