def test_has(self): with self.settings() as settings: self.assertTrue(settings.has(["api", "key"])) self.assertFalse(settings.has(["api", "lock"]))
def test_has(self): with self.mocked_config(): settings = octoprint.settings.Settings() self.assertTrue(settings.has(["api", "key"])) self.assertFalse(settings.has(["api", "lock"]))