Skip to content

Commit e616eb3

Browse files
committed
Update test to expect flit-core installation
The InstallPip() function now installs flit-core alongside pip, so the unit test mock needs to expect the flit-core call.
1 parent 75fcd93 commit e616eb3

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/python/supply/supply_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ var _ = Describe("Supply", func() {
154154

155155
It("installs latest from manifest", func() {
156156
mockInstaller.EXPECT().InstallOnlyVersion("pip", "/tmp/pip")
157+
mockInstaller.EXPECT().InstallOnlyVersion("flit-core", "/tmp/pip")
157158
mockCommand.EXPECT().Execute(buildDir, gomock.Any(), gomock.Any(), "python", "-m", "pip", "install", "pip", "--exists-action=w", "--no-index", "--ignore-installed", "--find-links=/tmp/pip")
158159
mockStager.EXPECT().LinkDirectoryInDepDir(filepath.Join(filepath.Join(depDir, "python"), "bin"), "bin")
159160

0 commit comments

Comments
 (0)