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
f2846dd2709b
Commit
c85514e0
authored
Feb 28, 2019
by
Nsukami Patrick
Browse files
Flake8: fix E302 expected 2 blank lines, found 1
parent
60d3320151b1
Changes
4
Hide whitespace changes
Inline
Side-by-side
cubicweb_person/entities.py
View file @
f2846dd2
...
...
@@ -8,6 +8,7 @@ __docformat__ = "restructuredtext en"
from
cubicweb.entities
import
AnyEntity
,
fetch_config
class
Person
(
AnyEntity
):
"""customized class for Person entities"""
__regid__
=
'Person'
...
...
cubicweb_person/hooks.py
View file @
f2846dd2
from
cubicweb.predicates
import
is_instance
from
cubicweb.sobjects.notification
import
ContentAddedView
class
PersonAddedView
(
ContentAddedView
):
"""get notified from new persons"""
__select__
=
is_instance
(
'Person'
)
...
...
test/test_person.py
View file @
f2846dd2
import
unittest
from
cubicweb.devtools.testlib
import
AutomaticWebTest
class
AutomaticWebTest
(
AutomaticWebTest
):
def
to_test_etypes
(
self
):
...
...
test/unittest_person.py
View file @
f2846dd2
import
unittest
from
cubicweb.devtools.testlib
import
CubicWebTC
class
PersonTC
(
CubicWebTC
):
def
setup_database
(
self
):
with
self
.
admin_access
.
repo_cnx
()
as
cnx
:
...
...
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