Exemple #1
0
    def test_top_level_include_is_root_node(self):
        mydir = pathlib.Path(os.path.dirname(__file__))
        buildfile = mydir / 'build_simple.yml'
        command.build('test/simple', str(buildfile))

        build_compose_contents = {'contents': {'package': 'test/simple'}}
        build.build_package_from_contents(None, 'test', 'compose_root',
                                          str(mydir), build_compose_contents)
        from quilt.data.test import compose_root, simple

        assert type(compose_root) is PackageNode
        assert simple.foo().equals(compose_root.foo())
Exemple #2
0
    def test_package_compose(self):
        mydir = pathlib.Path(os.path.dirname(__file__))
        buildfile = mydir / 'build_simple.yml'
        command.build('test/simple', str(buildfile))

        buildfile = mydir / 'build_compose.yml'
        command.build('test/compose1', str(buildfile))

        from quilt.data.test import simple
        from quilt.data.test import compose1

        assert simple.foo().equals(compose1.from_simple_foo())