def test_configure_accepts_custom_prefix(root): configure = Configure(".", prefix="/asdf") configure.cmd = mock.Mock() root.component += configure assert configure.prefix == "/asdf" root.component.deploy() assert " --prefix=/asdf" in configure.cmd.call_args[0][0]
def test_configure_accepts_custom_prefix(root): configure = Configure('.', prefix='/asdf') configure.cmd = mock.Mock() root.component += configure assert configure.prefix == '/asdf' root.component.deploy() assert ' --prefix=/asdf' in configure.cmd.call_args[0][0]
def test_configure_verifies_against_success_file(root): root.component += File("foo/config.status", content="", leading=True) configure = Configure("foo") configure.cmd = mock.Mock() root.component += configure root.component.deploy() root.component.deploy() assert 1 == configure.cmd.call_count
def test_configure_defaults_prefix_to_workdir(root): configure = Configure(".") configure.cmd = mock.Mock() root.component += configure assert configure.prefix == root.component.workdir root.component.deploy() assert (" --prefix={}".format(root.component.workdir) in configure.cmd.call_args[0][0])