osbuild-composer: Move InitWeldr code into weldr.New

This will make it easier to support new features related to building for
other distribution releases.
This commit is contained in:
Brian C. Lane 2021-04-15 15:10:34 -07:00 committed by Ondřej Budai
parent a330d84739
commit 9818b4b6b1
4 changed files with 62 additions and 35 deletions

View file

@ -49,7 +49,7 @@ func createWeldrAPI(tempdir string, fixtureGenerator rpmmd_mock.FixtureGenerator
panic(err)
}
return New(rpm, arch, d, rr, nil, fixture.Store, fixture.Workers, ""), fixture.Store
return NewTestAPI(rpm, arch, d, rr, nil, fixture.Store, fixture.Workers, ""), fixture.Store
}
func TestBasic(t *testing.T) {