aboutsummaryrefslogtreecommitdiffstats
path: root/ice_validator/app_tests/test_app_config.py
diff options
context:
space:
mode:
authorLovett, Trevor <trevor.lovett@att.com>2019-07-23 18:09:09 -0500
committerLovett, Trevor (tl2972) <tl2972@att.com>2019-07-24 08:13:17 -0500
commitb395eb5bb6c79558202a3d414982a56fac7c9e1d (patch)
treefee89beee0b19a0a15ae79037024e4a8edb64aaf /ice_validator/app_tests/test_app_config.py
parentddba4856fc7e3d844e9e763d44ce97207a1f23bd (diff)
[VVP] Adding bandit security scans and fixes
Issue-ID: VVP-244 Change-Id: Ia782f4cc7bf5a379ff8cdcce96cd2e7235998345 Signed-off-by: Lovett, Trevor <trevor.lovett@att.com>
Diffstat (limited to 'ice_validator/app_tests/test_app_config.py')
-rw-r--r--ice_validator/app_tests/test_app_config.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ice_validator/app_tests/test_app_config.py b/ice_validator/app_tests/test_app_config.py
index 223006f..a021b53 100644
--- a/ice_validator/app_tests/test_app_config.py
+++ b/ice_validator/app_tests/test_app_config.py
@@ -62,7 +62,7 @@ settings:
# noinspection PyShadowingNames
@pytest.fixture(scope="module")
def config():
- return vvp.Config(yaml.load(StringIO(DEFAULT_CONFIG)))
+ return vvp.Config(yaml.safe_load(StringIO(DEFAULT_CONFIG)))
def test_app_name(config):
@@ -114,7 +114,7 @@ settings:
def test_missing_category_fields():
- settings = yaml.load(StringIO(MISSING_CATEGORY_FIELD))
+ settings = yaml.safe_load(StringIO(MISSING_CATEGORY_FIELD))
with pytest.raises(RuntimeError) as e:
vvp.Config(settings)
assert "Missing: name" in str(e)