-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
273571a
commit 2d1b088
Showing
5 changed files
with
84 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
package cli | ||
|
||
import "testing" | ||
|
||
// import ( | ||
// "context" | ||
// "testing" | ||
|
||
// mltrainingpb "go.viam.com/api/mltrainingpb/v1" | ||
|
||
// "google.golang.org/grpc" | ||
// ) | ||
|
||
func TestMLSubmitCustomTrainingJob(t *testing.T) { | ||
// flags := make(map[string]any) | ||
// flags[datasetFlagDatasetID] = "01" | ||
// flags[mlTrainingFlagName] = "02" | ||
// flags[mlTrainingFlagVersion] = "03" | ||
// flags[generalFlagOrgID] = "04" | ||
// flags[trainFlagModelName] = "05" | ||
// flags[trainFlagModelVersion] = "06" | ||
// flags[trainCliArgs] = "07" | ||
|
||
// cCtx, ac, out, errOut := setup(nil, nil, nil, nil, nil, "") | ||
|
||
// ac.mlSubmitCustomTrainingJob("456", "123", "789", "ab-cd", "goodModel", "latest", | ||
// "--food==ice_cream,--bfast=bagel,din=pizza") | ||
|
||
// submitCustomTrainingJob := func(ctx context.Context, in *mltrainingpb.SubmitCustomTrainingJobRequest, opts ...grpc.CallOption) (*mltrainingpb.SubmitCustomTrainingJobResponse, error) { | ||
// return &mltrainingpb.SubmitCustomerTrainingResponse{Id: 200} | ||
// } | ||
|
||
// fake_MLServe := &inject. | ||
// {SubmitCustomTrainingJob: submitCustomTrainingJob} | ||
} | ||
|
||
// Attempted to test MLSubmitCustomTrainingJob, but was a little too difficult to setup, going to focus on manual testing |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters