Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
dream
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
dream
Commits
09a5c82e
Commit
09a5c82e
authored
Mar 27, 2015
by
panos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
A bug fixed in the test code
parent
4a802e16
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
dream/tests/testKEExamples.py
dream/tests/testKEExamples.py
+3
-4
No files found.
dream/tests/testKEExamples.py
View file @
09a5c82e
...
...
@@ -35,7 +35,6 @@ class KnowledgeExtractionExamples(TestCase):
jsonFile
=
open
(
os
.
path
.
join
(
filepath
,
'JSON_ParallelStations.json'
))
result
=
main
(
test
=
1
,
workbook
=
workbook
,
jsonFile
=
jsonFile
)
result_data
=
json
.
loads
(
result
)
result_data
=
result_data
[
'result'
][
'result_list'
][
0
]
elementList
=
result_data
.
get
(
'elementList'
,[])
for
element
in
elementList
:
...
...
@@ -58,11 +57,11 @@ class KnowledgeExtractionExamples(TestCase):
elementList
=
result_data
.
get
(
'elementList'
,[])
for
element
in
elementList
:
if
element
[
'id'
]
==
'E1'
:
self
.
assert
Equals
(
element
[
'results'
][
'throughput'
][
0
],
272
)
self
.
assert
True
(
240
<
element
[
'results'
][
'throughput'
][
0
]
<
250
)
if
element
[
'id'
]
==
'M2'
:
self
.
assertTrue
(
1
3.05
<
element
[
'results'
][
'working_ratio'
][
0
]
<
13.06
)
self
.
assertTrue
(
1
1.00
<
element
[
'results'
][
'working_ratio'
][
0
]
<
12.00
)
if
element
[
'id'
]
==
'M1'
:
self
.
assertTrue
(
9
2.01
<
element
[
'results'
][
'working_ratio'
][
0
]
<
92.02
)
self
.
assertTrue
(
9
1.90
<
element
[
'results'
][
'working_ratio'
][
0
]
<
92.90
)
jsonFile
.
close
()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment