コード例 #1
0
    def test_get_build_environment(self):
        plugin = AutotoolsPlugin(part_name="my-part", options=lambda: None)

        self.assertThat(
            plugin.get_build_environment(),
            Equals({"SNAPCRAFT_AUTOTOOLS_INSTALL_PREFIX": "/"}),
        )
コード例 #2
0
    def test_get_build_environment(self):
        plugin = AutotoolsPlugin(part_name="my-part", options=lambda: None)

        self.assertThat(plugin.get_build_environment(), Equals(dict()))
コード例 #3
0
def test_get_build_environment():
    plugin = AutotoolsPlugin(part_name="my-part", options=lambda: None)

    assert plugin.get_build_environment() == dict()