Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cubicweb
cubes
person
Commits
7492c44510f0
Commit
bcbd7a2a
authored
Feb 28, 2019
by
Nsukami Patrick
Browse files
Use unittest from standard library
parent
f725bd2d3e66
Changes
2
Hide whitespace changes
Inline
Side-by-side
test/test_person.py
View file @
7492c445
from
logilab.common.testlib
import
unittest
_main
import
unittest
from
cubicweb.devtools.testlib
import
AutomaticWebTest
class
AutomaticWebTest
(
AutomaticWebTest
):
...
...
@@ -10,4 +10,4 @@ class AutomaticWebTest(AutomaticWebTest):
return
()
if
__name__
==
'__main__'
:
unittest
_
main
()
unittest
.
main
()
test/unittest_person.py
View file @
7492c445
from
logilab.common.testlib
import
unittest
_main
import
unittest
from
cubicweb.devtools.testlib
import
CubicWebTC
class
PersonTC
(
CubicWebTC
):
...
...
@@ -14,4 +14,4 @@ class PersonTC(CubicWebTC):
self
.
assertEqual
(
e
.
dc_long_title
(),
'Mr adrien di mascio'
)
if
__name__
==
'__main__'
:
unittest
_
main
()
unittest
.
main
()
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