ops icon indicating copy to clipboard operation
ops copied to clipboard

refactor tests not to download packages each run

Open eyberg opened this issue 2 years ago • 0 comments

at least 2 of these can be stubbed and the other can be stubbed diff as well

func TestGetPkgCommand(t *testing.T) {
	getPkgCmd := cmd.PackageCommands()

	getPkgCmd.SetArgs([]string{"get", "eyberg/bind:9.13.4"})

	err := getPkgCmd.Execute()

	assert.Nil(t, err)
}

func TestPkgContentsCommand(t *testing.T) {
	getPkgCmd := cmd.PackageCommands()

	getPkgCmd.SetArgs([]string{"contents", "eyberg/bind:9.13.4"})

	err := getPkgCmd.Execute()

	assert.Nil(t, err)
}

func TestPkgDescribeCommand(t *testing.T) {
	getPkgCmd := cmd.PackageCommands()

	getPkgCmd.SetArgs([]string{"describe", "eyberg/bind:9.13.4"})

	err := getPkgCmd.Execute()

	assert.Nil(t, err)
}

eyberg avatar Mar 31 '22 03:03 eyberg