diff options
Diffstat (limited to 'robotframework-onap/ONAPLibrary/HTTPKeywords.py')
-rw-r--r-- | robotframework-onap/ONAPLibrary/HTTPKeywords.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/robotframework-onap/ONAPLibrary/HTTPKeywords.py b/robotframework-onap/ONAPLibrary/HTTPKeywords.py index f2afe6a..34bee78 100644 --- a/robotframework-onap/ONAPLibrary/HTTPKeywords.py +++ b/robotframework-onap/ONAPLibrary/HTTPKeywords.py @@ -14,6 +14,7 @@ from six.moves import urllib from robot.api.deco import keyword +import urllib3 class HTTPKeywords(object): @@ -30,3 +31,8 @@ class HTTPKeywords(object): def url_parse(self, url): """ Get pieces of the URL """ return urllib.parse.urlparse(url) + + @keyword + def disable_warnings(self): + """ Disable all warnings when creating sessions """ + urllib3.disable_warnings() |