diff options
Diffstat (limited to 'src/onaptests/utils')
-rw-r--r-- | src/onaptests/utils/exceptions.py | 2 | ||||
-rw-r--r-- | src/onaptests/utils/resources.py | 8 |
2 files changed, 9 insertions, 1 deletions
diff --git a/src/onaptests/utils/exceptions.py b/src/onaptests/utils/exceptions.py index 978e628..aeae9d1 100644 --- a/src/onaptests/utils/exceptions.py +++ b/src/onaptests/utils/exceptions.py @@ -6,7 +6,7 @@ # http://www.apache.org/licenses/LICENSE-2.0 """Module to define pythonsdk-test exceptions.""" -__author__ = ("Morgan Richomme <morgan.richomme@orange.com>") +__author__ = "Morgan Richomme <morgan.richomme@orange.com>" class OnapTestException(Exception): diff --git a/src/onaptests/utils/resources.py b/src/onaptests/utils/resources.py index 46c6c6e..71e56d6 100644 --- a/src/onaptests/utils/resources.py +++ b/src/onaptests/utils/resources.py @@ -5,6 +5,14 @@ import onaptests def get_resource_location(relative_path: str): + """Get location of resource files. + + Arguments: + relative_path (str): relative path of the resource + + Returns: + full_path (Path): full path of the resource + """ return os.path.join(os.path.dirname(os.path.realpath(onaptests.__file__)), relative_path) |