示例#1
0
    def test_empty_package_with_override(self):
        p = Package('p', [], [])
        p.overrides = 'override.cmake'

        out = StringIO()
        generate([p], out)

        assert (f'include({p.overrides})' in out.getvalue())
示例#2
0
    def test_empty_package_with_override(self):
        p = Package('p', [], [])
        p.overrides = 'override.cmake'

        files = {}
        generate([p], get_filestore_writer(files))

        assert ('CMakeLists.txt' in files)
        assert (f'include({p.overrides})'
                in files['CMakeLists.txt'].getvalue())