예제 #1
0
    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"])
예제 #2
0
	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"])
예제 #3
0
 def test_set_int_convert(self):
     with self.settings() as settings:
         settings.setInt(["server", "port"], "8181")
         self.assertEqual(8181, settings._config["server"]["port"])