-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from MiBiPreT/fix_tests
Add dummy code to pass dummy tests
- Loading branch information
Showing
2 changed files
with
37 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
"""Documentation about anatrans.""" | ||
import logging | ||
|
||
logging.getLogger(__name__).addHandler(logging.NullHandler()) | ||
|
||
__author__ = "Alraune Zech" | ||
__email__ = "[email protected]" | ||
__version__ = "0.1.0" |
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
"""Documentation about the anatrans module.""" | ||
|
||
|
||
# FIXME: put actual code here | ||
def hello(name): | ||
"""Say hello. | ||
Function docstring using Google docstring style. | ||
Args: | ||
name (str): Name to say hello to | ||
Returns: | ||
str: Hello message | ||
Raises: | ||
ValueError: If `name` is equal to `nobody` | ||
Example: | ||
This function can be called with `Jane Smith` as argument using | ||
>>> from anatrans.my_module import hello | ||
>>> hello('Jane Smith') | ||
'Hello Jane Smith!' | ||
""" | ||
if name == 'nobody': | ||
raise ValueError('Can not say hello to nobody') | ||
return f'Hello {name}!' |