Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
senpy
senpy
Commits
67ef4b60
Commit
67ef4b60
authored
Apr 25, 2018
by
J. Fernando Sánchez
Browse files
Skip evaluation tests in Py2
GSITK doesn't support python2
parent
da4b11e5
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/test_plugins.py
View file @
67ef4b60
#!/bin/env python
#!/bin/env python
import
os
import
os
import
sys
import
pickle
import
pickle
import
shutil
import
shutil
import
tempfile
import
tempfile
from
unittest
import
TestCase
from
unittest
import
TestCase
,
skipIf
from
senpy.models
import
Results
,
Entry
,
EmotionSet
,
Emotion
,
Plugins
from
senpy.models
import
Results
,
Entry
,
EmotionSet
,
Emotion
,
Plugins
from
senpy
import
plugins
from
senpy
import
plugins
from
senpy.plugins.conversion.emotion.centroids
import
CentroidConversion
from
senpy.plugins.conversion.emotion.centroids
import
CentroidConversion
...
@@ -311,6 +312,8 @@ class PluginsTest(TestCase):
...
@@ -311,6 +312,8 @@ class PluginsTest(TestCase):
res
=
c
.
_backwards_conversion
(
e
)
res
=
c
.
_backwards_conversion
(
e
)
assert
res
[
"onyx:hasEmotionCategory"
]
==
"c2"
assert
res
[
"onyx:hasEmotionCategory"
]
==
"c2"
@
skipIf
(
sys
.
version_info
<
(
3
,
0
),
reason
=
"requires Python3"
)
def
test_evaluation
(
self
):
def
test_evaluation
(
self
):
testdata
=
[]
testdata
=
[]
for
i
in
range
(
50
):
for
i
in
range
(
50
):
...
...
Write
Preview
Supports
Markdown
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