Skip to content

Commit

Permalink
unit test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
seanbudd committed Jan 16, 2025
1 parent 481039f commit b538505
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/unit/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -1046,8 +1046,8 @@ def test_outputDeviceNotFound(self):
profile["audio"]["outputDevice"]


@patch("addonStore.dataManager.addonDataManager", create=True)
class Config_upgradeProfileSteps_upgradeConfigFrom_14_to_15(unittest.TestCase):
@patch("addonStore.dataManager.addonDataManager", create=True)
def test_defaultProfile(self, mock_dataManager: MagicMock):
"""Test that the default profile is correctly upgraded."""
configString = ""
Expand All @@ -1056,7 +1056,6 @@ def test_defaultProfile(self, mock_dataManager: MagicMock):
# Ensure showWarning has not been set
self.assertNotIsInstance(mock_dataManager.storeSettings.showWarning, bool)

@patch("addonStore.dataManager.addonDataManager", create=True)
def test_profileWithShowWarningSetFalse(self, mock_dataManager: MagicMock):
"""Test that a profile with showWarning set is correctly upgraded."""
configString = """
Expand All @@ -1068,7 +1067,6 @@ def test_profileWithShowWarningSetFalse(self, mock_dataManager: MagicMock):
self.assertIsInstance(mock_dataManager.storeSettings.showWarning, bool)
self.assertEqual(mock_dataManager.storeSettings.showWarning, False)

@patch("addonStore.dataManager.addonDataManager", create=True)
def test_profileWithShowWarningSetTrue(self, mock_dataManager: MagicMock):
"""Test that a profile with showWarning not set is correctly upgraded."""
configString = """
Expand Down

0 comments on commit b538505

Please sign in to comment.