[VVP] validation scripts warning function 24/72024/1 casablanca
authorstark, steven <steven.stark@att.com>
Tue, 6 Nov 2018 23:47:07 +0000 (15:47 -0800)
committersteven stark <steven.stark@att.com>
Tue, 6 Nov 2018 23:59:15 +0000 (23:59 +0000)
Change-Id: Ib639b5eb271e48ded9d5c8bb8857b5e12260deed
Issue-ID: VVP-116
Signed-off-by: stark, steven <steven.stark@att.com>
ice_validator/tests/conftest.py

index 8650c69..54015d0 100644 (file)
@@ -601,7 +601,7 @@ def load_current_requirements():
             with open('requirements.json', 'wb') as needs:
                 needs.write(r.content)
         else:
-            warnings.warning("Unexpected content-type ({}) encountered downloading requirements.json, using last saved copy".format(r.headers.get('content-type')))
+            warnings.warn("Unexpected content-type ({}) encountered downloading requirements.json, using last saved copy".format(r.headers.get('content-type')))
     except requests.exceptions.RequestException as e:
         warnings.warn("Error downloading latest JSON, using last saved copy.")
         warnings.warn(UserWarning(e))