def test_vars_accessible(self): y = LainYaml(ignore_prepare=True) y.load(open(YAML).read()) assert y.appname == 'hello' assert y.build.base == 'golang' assert y.build.script == ['( go build -o hello )'] assert y.release.script == [] assert y.release.dest_base == 'ubuntu' assert len(y.release.copy) == 1 assert y.release.copy[0]['src'] == 'hello' assert y.release.copy[0]['dest'] == '/usr/bin/hello' assert y.test.script == ['( go test )'] assert y.procs['web'].cmd == ['hello'] assert y.procs['web'].setup_time == 40 assert y.procs['web'].kill_timeout == 30
def test_vars_accessible(self): y = LainYaml(ignore_prepare=True) y.load(open(YAML).read()) assert y.appname == 'hello' assert y.build.base == 'golang' assert y.build.script == ['( go build -o hello )'] assert y.release.script == [] assert y.release.dest_base == 'ubuntu' assert len(y.release.copy) == 1 assert y.release.copy[0]['src'] == 'hello' assert y.release.copy[0]['dest'] == '/usr/bin/hello' assert y.test.script == ['( go test )'] assert y.procs['web'].cmd == ['hello'] assert y.procs['web'].setup_time == 40 assert y.procs['web'].kill_timeout == 30
def test_initialization(self): y = LainYaml(YAML, ignore_prepare=True) y = LainYaml(ignore_prepare=True) y.load(open(YAML).read())
def test_initialization(self): y = LainYaml(YAML, ignore_prepare=True) y = LainYaml(ignore_prepare=True) y.load(open(YAML).read())