Skip to content

Commit

Permalink
Merge pull request #16 from MiBiPreT/fix_tests
Browse files Browse the repository at this point in the history
Add dummy code to pass dummy tests
  • Loading branch information
JaroCamphuijsen authored Mar 26, 2024
2 parents 975986a + 3b462fa commit 590e2b3
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
8 changes: 8 additions & 0 deletions mibipret/__init__.py
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"
29 changes: 29 additions & 0 deletions mibipret/my_module.py
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}!'

0 comments on commit 590e2b3

Please sign in to comment.