-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(entities): fix doctests (#1255)
- Loading branch information
Showing
10 changed files
with
214 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,23 @@ | ||
# Transitional imports to ensure non-breaking changes. | ||
# Could be deprecated in the next major release. | ||
# | ||
# How imports are being used today: | ||
# | ||
# >>> from openfisca_core.module import symbol | ||
# | ||
# The previous example provokes cyclic dependency problems | ||
# that prevent us from modularizing the different components | ||
# of the library so to make them easier to test and to maintain. | ||
# | ||
# How could them be used after the next major release: | ||
# | ||
# >>> from openfisca_core import module | ||
# >>> module.symbol() | ||
# | ||
# And for classes: | ||
# | ||
# >>> from openfisca_core import module | ||
# >>> module.Symbol() | ||
# | ||
# See: https://www.python.org/dev/peps/pep-0008/#imports | ||
"""Provide a way of representing the entities of a rule system.""" | ||
|
||
from . import types | ||
from ._core_entity import CoreEntity | ||
from .entity import Entity | ||
from .group_entity import GroupEntity | ||
from .helpers import build_entity, find_role | ||
from .role import Role | ||
|
||
SingleEntity = Entity | ||
check_role_validity = CoreEntity.check_role_validity | ||
|
||
__all__ = [ | ||
"CoreEntity", | ||
"Entity", | ||
"SingleEntity", | ||
"GroupEntity", | ||
"Role", | ||
"SingleEntity", | ||
"build_entity", | ||
"check_role_validity", | ||
"find_role", | ||
"types", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.