Esempio n. 1
0
    def test_get_build_base_for_defined_type_base(self):
        snapcraft_yaml_file_path = self.make_snapcraft_yaml(
            dedent(
                """\
            name: core20
            type: base
        """
            )
        )

        info = ProjectInfo(snapcraft_yaml_file_path=snapcraft_yaml_file_path)

        self.assertThat(info.get_build_base(), Equals("core20"))
Esempio n. 2
0
    def test_get_build_base_build_base_overrides(self):
        snapcraft_yaml_file_path = self.make_snapcraft_yaml(
            dedent(
                """\
            name: core20
            type: base
            build-base: core
        """
            )
        )

        info = ProjectInfo(snapcraft_yaml_file_path=snapcraft_yaml_file_path)

        self.assertThat(info.get_build_base(), Equals("core"))