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

            self.assertTrue(settings.has(["api", "key"]))
            self.assertFalse(settings.has(["api", "lock"]))
示例#3
0
	def test_has(self):
		with self.mocked_config():
			settings = octoprint.settings.Settings()

			self.assertTrue(settings.has(["api", "key"]))
			self.assertFalse(settings.has(["api", "lock"]))