def test_set_int_convert(self): with self.mocked_config(): settings = octoprint.settings.Settings() settings.setInt(["server", "port"], "8181") self.assertEqual(8181, settings._config["server"]["port"])
def test_set_int_convert(self): with self.settings() as settings: settings.setInt(["server", "port"], "8181") self.assertEqual(8181, settings._config["server"]["port"])