Skip to content

Commit 7e6a47b

Browse files
Boyuan DengBoyuan Deng
authored andcommitted
pytest bug fix
1 parent 4dd404e commit 7e6a47b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

mltrace/entities/history.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
from mltrace.db import Store
77
from mltrace import utils as clientUtils
8-
from mltrace.entities import ComponentRun, IOPointer
8+
from mltrace.entities import base
99

1010

1111
class History(object):
@@ -42,11 +42,11 @@ def convertToClient(componentRuns):
4242
component_runs = []
4343
for cr in componentRuns:
4444
inputs = [
45-
IOPointer.from_dictionary(iop.__dict__).to_dictionary()
45+
base.from_dictionary(iop.__dict__).to_dictionary()
4646
for iop in cr.inputs
4747
]
4848
outputs = [
49-
IOPointer.from_dictionary(iop.__dict__).to_dictionary()
49+
base.from_dictionary(iop.__dict__).to_dictionary()
5050
for iop in cr.outputs
5151
]
5252
dependencies = [dep.component_name for dep in cr.dependencies]
@@ -58,7 +58,7 @@ def convertToClient(componentRuns):
5858
"dependencies": dependencies,
5959
}
6060
)
61-
component_runs.append(ComponentRun.from_dictionary(d))
61+
component_runs.append(base.from_dictionary(d))
6262
return component_runs
6363

6464
def __getitem__(self, index):

0 commit comments

Comments
 (0)