Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit36f0792

Browse files
committed
kyler/Docker
1 parente82bcd2 commit36f0792

File tree

1 file changed

+1
-18
lines changed

1 file changed

+1
-18
lines changed

‎mlflow/tests/ModelManager.test.ts‎

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import{describe,test,expect,beforeAll,jest,afterAll}from'@jest/globals';
1+
import{describe,test,expect,beforeAll,jest}from'@jest/globals';
22
importRunClientfrom'../src/tracking/RunClient';
33
importModelManagerfrom'../src/workflows/ModelManager';
44
importModelRegistryClientfrom'../src/model-registry/ModelRegistryClient';
@@ -38,7 +38,6 @@ describe('ModelManager', () => {
3838
);
3939
expect(newModelVersion.name).toBe(modelName2);
4040
expect(newModelVersion.version).toBe('1');
41-
// await modelRegistryClient.deleteRegisteredModel(modelName2);
4241
});
4342
test('Should throw an error for duplicate model name',async()=>{
4443
// Making it so console.error doesn't show up in the console
@@ -63,7 +62,6 @@ describe('ModelManager', () => {
6362
expect(consoleErrorMock).toHaveBeenCalled();
6463
// restoring the console to show console.error again to not affect other tests
6564
consoleErrorMock.mockRestore();
66-
// await modelRegistryClient.deleteRegisteredModel(modelName3);
6765
});
6866
test('Should throw and console.error if no parameters are passed to the method',async()=>{
6967
// Making it so console.error doesn't show up in the console
@@ -101,7 +99,6 @@ describe('ModelManager', () => {
10199
);
102100
expect(updatedModelDescriptionAndTag.tags[0].key).toBe('modelTagKey');
103101
expect(updatedModelDescriptionAndTag.tags[0].value).toBe('modelTagValue');
104-
// await modelRegistryClient.deleteRegisteredModel(modelName2);
105102
});
106103
test('Should throw and console.error if no parameters are passed to the method',async()=>{
107104
// Making it so console.error doesn't show up in the console
@@ -154,7 +151,6 @@ describe('ModelManager', () => {
154151
expect(updateAllLatestModelVersionObject.tags[0].value).toBe(
155152
'modelVersionTagValue'
156153
);
157-
// await modelRegistryClient.deleteRegisteredModel(modelName2);
158154
});
159155
test('Should throw and console.error if no parameters are passed to the method',async()=>{
160156
// Making it so console.error doesn't show up in the console
@@ -196,7 +192,6 @@ describe('ModelManager', () => {
196192
expect(latestModelVersion[0].name).toBe(modelName2);
197193
expect(latestModelVersion[0].tags[0].key).toBe('modelVersionTagKey');
198194
expect(latestModelVersion[0].tags[0].value).toBe('modelVersionTagValue');
199-
// await modelRegistryClient.deleteRegisteredModel(modelName2);
200195
});
201196
test('Should throw and console.error if no parameters are passed to the method',async()=>{
202197
// Making it so console.error doesn't show up in the console
@@ -236,7 +231,6 @@ describe('ModelManager', () => {
236231
expect(latestModelVersion[0].version).toBe('2');
237232
expect(latestModelVersion[0].name).toBe(modelName2);
238233
expect(latestModelVersion[0].aliases[0]).toBe('modelVersionAlias');
239-
// await modelRegistryClient.deleteRegisteredModel(modelName2);
240234
});
241235
test('Should throw and console.error if no parameters are passed to the method',async()=>{
242236
// Making it so console.error doesn't show up in the console
@@ -275,7 +269,6 @@ describe('ModelManager', () => {
275269
expect(latestModelVersion.version).toBe('2');
276270
expect(latestModelVersion.name).toBe(modelName2);
277271
expect(latestModelVersion.description).toBe('modelDescription');
278-
// await modelRegistryClient.deleteRegisteredModel(modelName2);
279272
});
280273
test('Should throw and console.error if no parameters are passed to the method',async()=>{
281274
// Making it so console.error doesn't show up in the console
@@ -322,7 +315,6 @@ describe('ModelManager', () => {
322315
expect(updatedModelVersionAll.description).toBe(
323316
'modelVersionDescription'
324317
);
325-
// await modelRegistryClient.deleteRegisteredModel(modelName2);
326318
});
327319
test('Should throw and console.error if no parameters are passed to the method',async()=>{
328320
// Making it so console.error doesn't show up in the console
@@ -357,7 +349,6 @@ describe('ModelManager', () => {
357349
constlatestModelVersion:keyable=
358350
awaitmodelRegistryClient.getLatestModelVersions(modelName2);
359351
expect(latestModelVersion[0].version).toBe('1');
360-
// await modelRegistryClient.deleteRegisteredModel(modelName2);
361352
});
362353
test('Should throw and console.error if no parameters are passed to the method',async()=>{
363354
// Making it so console.error doesn't show up in the console
@@ -396,8 +387,6 @@ describe('ModelManager', () => {
396387
expect(maxModel.latest_versions[0].source).toBe(
397388
runData.info.artifact_uri
398389
);
399-
// await modelRegistryClient.deleteRegisteredModel(modelName2);
400-
// await runClient.deleteRun(run2.info.run_id);
401390
});
402391

403392
test('Should create model from run with best(minimum) metric',async()=>{
@@ -420,8 +409,6 @@ describe('ModelManager', () => {
420409
expect(minModel.latest_versions[0].source).toBe(
421410
runData2.info.artifact_uri
422411
);
423-
// await modelRegistryClient.deleteRegisteredModel(modelName2);
424-
// await runClient.deleteRun(run2.info.run_id);
425412
});
426413

427414
test('Should throw and console.error if no parameters are passed to the method',async()=>{
@@ -439,8 +426,4 @@ describe('ModelManager', () => {
439426
consoleErrorMock.mockRestore();
440427
});
441428
});
442-
443-
// afterAll(async () => {
444-
// await runClient.deleteRun(run.info.run_id);
445-
// });
446429
});

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp