Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
MindSpore
mindinsight
提交
b42b7b0c
M
mindinsight
项目概览
MindSpore
/
mindinsight
通知
8
Star
3
Fork
2
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
M
mindinsight
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
b42b7b0c
编写于
4月 07, 2020
作者:
M
mindspore-ci-bot
提交者:
Gitee
4月 07, 2020
浏览文件
操作
浏览文件
下载
差异文件
!18 Fix pylint issues reported at 7, April
Merge pull request !18 from 李鸿章/fix_pylint
上级
432a0acc
274ec9e5
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
6 addition
and
7 deletion
+6
-7
tests/ut/datavisual/processors/test_graph_processor.py
tests/ut/datavisual/processors/test_graph_processor.py
+1
-1
tests/ut/datavisual/processors/test_images_processor.py
tests/ut/datavisual/processors/test_images_processor.py
+4
-5
tests/ut/datavisual/processors/test_scalars_processor.py
tests/ut/datavisual/processors/test_scalars_processor.py
+1
-1
未找到文件。
tests/ut/datavisual/processors/test_graph_processor.py
浏览文件 @
b42b7b0c
...
...
@@ -105,7 +105,7 @@ class TestGraphProcessor:
test_train_id
=
"not_exist_train_id"
with
pytest
.
raises
(
exceptions
.
TrainJobNotExistError
)
as
exc_info
:
GraphProcessor
(
test_train_id
,
self
.
_mock_data_manager
)
assert
"Train job is not exist. Detail: Can not find the train job in data manager."
==
exc_info
.
value
.
message
assert
exc_info
.
value
.
message
==
"Train job is not exist. Detail: Can not find the train job in data manager."
@
pytest
.
mark
.
usefixtures
(
'load_graph_record'
)
@
patch
.
object
(
DataManager
,
'get_train_job_by_plugin'
)
...
...
tests/ut/datavisual/processors/test_images_processor.py
浏览文件 @
b42b7b0c
...
...
@@ -30,7 +30,6 @@ from mindinsight.datavisual.data_transform import data_manager
from
mindinsight.datavisual.data_transform.loader_generators.data_loader_generator
import
DataLoaderGenerator
from
mindinsight.datavisual.processors.images_processor
import
ImageProcessor
from
mindinsight.datavisual.utils
import
crc32
from
mindinsight.utils.exceptions
import
ParamValueError
from
....utils.log_operations
import
LogOperations
from
....utils.tools
import
check_loading_done
,
delete_files_or_dirs
,
get_image_tensor_from_bytes
...
...
@@ -113,7 +112,7 @@ class TestImagesProcessor:
image_processor
.
get_metadata_list
(
test_train_id
,
self
.
_tag_name
)
assert
exc_info
.
value
.
error_code
==
'50545005'
assert
"Train job is not exist. Detail: Can not find the given train job in cache."
==
exc_info
.
value
.
message
assert
exc_info
.
value
.
message
==
"Train job is not exist. Detail: Can not find the given train job in cache."
@
pytest
.
mark
.
usefixtures
(
'load_image_record'
)
def
test_get_metadata_list_with_not_exist_tag
(
self
):
...
...
@@ -150,7 +149,7 @@ class TestImagesProcessor:
image_processor
.
get_single_image
(
test_train_id
,
test_tag_name
,
test_step
)
assert
exc_info
.
value
.
error_code
==
'50545005'
assert
"Train job is not exist. Detail: Can not find the given train job in cache."
==
exc_info
.
value
.
message
assert
exc_info
.
value
.
message
==
"Train job is not exist. Detail: Can not find the given train job in cache."
@
pytest
.
mark
.
usefixtures
(
'load_image_record'
)
def
test_get_single_image_with_not_exist_tag
(
self
):
...
...
@@ -178,8 +177,8 @@ class TestImagesProcessor:
image_processor
.
get_single_image
(
self
.
_train_id
,
test_tag_name
,
test_step
)
assert
exc_info
.
value
.
error_code
==
'5054500D'
assert
"Image is not exist. "
\
"Detail: Can not find the step with given train job id and tag."
==
exc_info
.
value
.
message
assert
exc_info
.
value
.
message
==
"Image is not exist. "
\
"Detail: Can not find the step with given train job id and tag."
@
pytest
.
mark
.
usefixtures
(
'load_image_record'
)
def
test_get_single_image_success
(
self
):
...
...
tests/ut/datavisual/processors/test_scalars_processor.py
浏览文件 @
b42b7b0c
...
...
@@ -89,7 +89,7 @@ class TestScalarsProcessor:
scalar_processor
.
get_metadata_list
(
test_train_id
,
self
.
_tag_name
)
assert
exc_info
.
value
.
error_code
==
'50545005'
assert
"Train job is not exist. Detail: Can not find the given train job in cache."
==
exc_info
.
value
.
message
assert
exc_info
.
value
.
message
==
"Train job is not exist. Detail: Can not find the given train job in cache."
@
pytest
.
mark
.
usefixtures
(
'load_scalar_record'
)
def
test_get_metadata_list_with_not_exist_tag
(
self
):
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录