Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenDILab开源决策智能平台
treevalue
提交
f7d1b6fd
T
treevalue
项目概览
OpenDILab开源决策智能平台
/
treevalue
10 个月 前同步成功
通知
3
Star
213
Fork
3
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
treevalue
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
f7d1b6fd
编写于
1月 26, 2022
作者:
HansBug
😆
1
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
test(hansbug): update test range
上级
59609971
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
14 addition
and
14 deletion
+14
-14
test/entry/cli/test_graph.py
test/entry/cli/test_graph.py
+14
-14
未找到文件。
test/entry/cli/test_graph.py
浏览文件 @
f7d1b6fd
...
...
@@ -35,9 +35,9 @@ class TestEntryCliGraph:
assert
result
.
exit_code
==
0
assert
os
.
path
.
exists
(
'test_graph.svg'
)
assert
5
830
<=
os
.
path
.
getsize
(
'test_graph.svg'
)
<=
593
0
assert
5
000
<=
os
.
path
.
getsize
(
'test_graph.svg'
)
<=
700
0
assert
os
.
path
.
exists
(
'test_graph.gv'
)
assert
1
800
<=
os
.
path
.
getsize
(
'test_graph.gv'
)
<=
19
00
assert
1
500
<=
os
.
path
.
getsize
(
'test_graph.gv'
)
<=
25
00
def
test_simple_code_graph_to_stdout
(
self
):
runner
=
CliRunner
()
...
...
@@ -52,7 +52,7 @@ class TestEntryCliGraph:
assert
result
.
exit_code
==
0
assert
not
os
.
path
.
exists
(
'test_graph.svg'
)
assert
not
os
.
path
.
exists
(
'test_graph.gv'
)
assert
1
800
<=
len
(
result
.
output
)
<=
19
00
assert
1
500
<=
len
(
result
.
output
)
<=
25
00
def
test_simple_code_multiple_graph
(
self
):
runner
=
CliRunner
()
...
...
@@ -64,7 +64,7 @@ class TestEntryCliGraph:
assert
result
.
exit_code
==
0
assert
os
.
path
.
exists
(
'test_graph.svg'
)
assert
1
1000
<=
os
.
path
.
getsize
(
'test_graph.svg'
)
<=
12
000
assert
1
0000
<=
os
.
path
.
getsize
(
'test_graph.svg'
)
<=
13
000
with
runner
.
isolated_filesystem
():
result
=
runner
.
invoke
(
...
...
@@ -74,7 +74,7 @@ class TestEntryCliGraph:
assert
result
.
exit_code
==
0
assert
os
.
path
.
exists
(
'test_graph.svg'
)
assert
1
6150
<=
os
.
path
.
getsize
(
'test_graph.svg'
)
<=
163
00
assert
1
5500
<=
os
.
path
.
getsize
(
'test_graph.svg'
)
<=
175
00
def
test_simple_binary_graph
(
self
):
runner
=
CliRunner
()
...
...
@@ -89,7 +89,7 @@ class TestEntryCliGraph:
assert
result
.
exit_code
==
0
assert
os
.
path
.
exists
(
'test_graph.svg'
)
assert
5
830
<=
os
.
path
.
getsize
(
'test_graph.svg'
)
<=
593
0
assert
5
500
<=
os
.
path
.
getsize
(
'test_graph.svg'
)
<=
650
0
with
runner
.
isolated_filesystem
():
with
open
(
'g1.bg'
,
'wb'
)
as
file
:
...
...
@@ -106,7 +106,7 @@ class TestEntryCliGraph:
assert
result
.
exit_code
==
0
assert
os
.
path
.
exists
(
'test_graph.svg'
)
assert
1
6150
<=
os
.
path
.
getsize
(
'test_graph.svg'
)
<=
163
00
assert
1
5500
<=
os
.
path
.
getsize
(
'test_graph.svg'
)
<=
175
00
with
runner
.
isolated_filesystem
():
with
open
(
'test.entry.cli.test_graph.t1'
,
'wb'
)
as
file
:
...
...
@@ -119,7 +119,7 @@ class TestEntryCliGraph:
assert
result
.
exit_code
==
0
assert
os
.
path
.
exists
(
'test_graph.svg'
)
assert
1
1000
<=
os
.
path
.
getsize
(
'test_graph.svg'
)
<=
12
000
assert
1
0000
<=
os
.
path
.
getsize
(
'test_graph.svg'
)
<=
13
000
with
runner
.
isolated_filesystem
():
with
open
(
'test.entry.cli.test_graph.t1'
,
'wb'
)
as
file
:
...
...
@@ -132,7 +132,7 @@ class TestEntryCliGraph:
assert
result
.
exit_code
==
0
assert
os
.
path
.
exists
(
'test_graph.svg'
)
assert
5
830
<=
os
.
path
.
getsize
(
'test_graph.svg'
)
<=
593
0
assert
5
500
<=
os
.
path
.
getsize
(
'test_graph.svg'
)
<=
650
0
def
test_duplicates
(
self
):
runner
=
CliRunner
()
...
...
@@ -145,7 +145,7 @@ class TestEntryCliGraph:
assert
result
.
exit_code
==
0
assert
os
.
path
.
exists
(
'test_graph.svg'
)
assert
10000
<=
os
.
path
.
getsize
(
'test_graph.svg'
)
<=
1043
0
assert
8000
<=
os
.
path
.
getsize
(
'test_graph.svg'
)
<=
1200
0
_p
=
os
.
path
.
abspath
(
os
.
curdir
)
with
runner
.
isolated_filesystem
():
...
...
@@ -160,7 +160,7 @@ class TestEntryCliGraph:
assert
os
.
path
.
exists
(
'test_graph.svg'
)
import
shutil
shutil
.
copy
(
'test_graph.svg'
,
os
.
path
.
join
(
_p
,
'test_graph.svg'
))
assert
10
550
<=
os
.
path
.
getsize
(
'test_graph.svg'
)
<=
1065
0
assert
10
000
<=
os
.
path
.
getsize
(
'test_graph.svg'
)
<=
1100
0
def
test_graph
(
self
):
runner
=
CliRunner
()
...
...
@@ -174,7 +174,7 @@ class TestEntryCliGraph:
assert
result
.
exit_code
==
0
assert
os
.
path
.
exists
(
'test_graph.svg'
)
assert
1
5670
<=
os
.
path
.
getsize
(
'test_graph.svg'
)
<=
1577
0
assert
1
4000
<=
os
.
path
.
getsize
(
'test_graph.svg'
)
<=
1650
0
content
=
pathlib
.
Path
(
'test_graph.svg'
).
read_text
()
assert
'first title'
not
in
content
...
...
@@ -190,7 +190,7 @@ class TestEntryCliGraph:
)
assert
result
.
exit_code
==
0
assert
5
320
<=
len
(
result
.
output
)
<=
542
0
assert
5
000
<=
len
(
result
.
output
)
<=
600
0
assert
'#ffffff00'
in
result
.
output
with
runner
.
isolated_filesystem
():
...
...
@@ -221,4 +221,4 @@ class TestEntryCliGraph:
assert
result
.
exit_code
==
0
assert
os
.
path
.
exists
(
'test_graph.svg'
)
assert
700
<=
os
.
path
.
getsize
(
'test_graph.svg'
)
<=
8
00
assert
500
<=
os
.
path
.
getsize
(
'test_graph.svg'
)
<=
10
00
HansBug
😆
@HansBug
mentioned in commit
95015dc6
·
1月 27, 2022
mentioned in commit
95015dc6
mentioned in commit 95015dc62fc290a0d6c1698883c5fd7079e36a40
开关提交列表
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录