コード例 #1
0
    def test_prepare_act(self):
        y = LainYaml(ignore_prepare=True)
        assert y.act == False
        y.init_act(YAML, ignore_prepare=True)
        assert y.act == True
        assert len(y.img_names) == 5
        assert len(y.img_temps) == 5
        assert len(y.img_builders) == 5

        y = LainYaml(YAML, ignore_prepare=True)
        assert y.act == True
        assert len(y.img_names) == 5
        assert len(y.img_temps) == 5
        assert len(y.img_builders) == 5
コード例 #2
0
ファイル: test_lain_yaml.py プロジェクト: ccl0326/lain-sdk
    def test_prepare_act(self):
        y = LainYaml(ignore_prepare=True)
        assert y.act == False
        y.init_act(YAML, ignore_prepare=True)
        assert y.act == True
        assert len(y.img_names) == 5
        assert len(y.img_temps) == 5
        assert len(y.img_builders) == 5

        y = LainYaml(YAML, ignore_prepare=True)
        assert y.act == True
        assert len(y.img_names) == 5
        assert len(y.img_temps) == 5
        assert len(y.img_builders) == 5
コード例 #3
0
    def test_prepare_act(self):
        y = LainYaml(ignore_prepare=True)
        assert y.act == False
        try:
            y.init_act(YAML, ignore_prepare=True)
        except Exception:
            pass
        assert y.act == True
        assert len(y.img_names) == 4
        assert len(y.img_temps) == 4
        assert len(y.img_builders) == 4

        y = LainYaml(YAML, ignore_prepare=True)
        assert y.act == True
        assert len(y.img_names) == 4
        assert len(y.img_temps) == 4
        assert len(y.img_builders) == 4
コード例 #4
0
ファイル: test_lain_yaml.py プロジェクト: laincloud/lain-sdk
    def test_prepare_act(self):
        y = LainYaml(ignore_prepare=True)
        assert y.act == False
        try:
            y.init_act(YAML, ignore_prepare=True)
        except Exception:
            pass
        assert y.act == True
        assert len(y.img_names) == 4
        assert len(y.img_temps) == 4
        assert len(y.img_builders) == 4

        y = LainYaml(YAML, ignore_prepare=True)
        assert y.act == True
        assert len(y.img_names) == 4
        assert len(y.img_temps) == 4
        assert len(y.img_builders) == 4