def test_schema(self): schema = NilPlugin.get_schema() self.assertThat( schema["$schema"], Equals("http://json-schema.org/draft-04/schema#") ) self.assertThat(schema["type"], Equals("object")) self.assertFalse(schema["additionalProperties"]) self.assertFalse(schema["properties"])
def test_get_build_commands(self): plugin = NilPlugin(part_name="my-part", options=lambda: None) self.assertThat(plugin.get_build_commands(), Equals(list()))
def test_get_build_environment(self): plugin = NilPlugin(part_name="my-part", options=lambda: None) self.assertThat(plugin.get_build_environment(), Equals(dict()))