Esempio n. 1
0
    def test_get_build_commands(self):
        plugin = DumpPlugin(part_name="my-part", options=lambda: None)

        self.assertThat(
            plugin.get_build_commands(),
            Equals([
                'cp --archive --link --no-dereference . "${SNAPCRAFT_PART_INSTALL}"'
            ]),
        )
Esempio n. 2
0
    def test_schema(self):
        schema = DumpPlugin.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"])
Esempio n. 3
0
    def test_get_build_environment(self):
        plugin = DumpPlugin(part_name="my-part", options=lambda: None)

        self.assertThat(plugin.get_build_environment(), Equals(dict()))
Esempio n. 4
0
    def test_get_build_packages(self):
        plugin = DumpPlugin(part_name="my-part", options=lambda: None)

        self.assertThat(plugin.get_build_packages(), Equals(set()))