diff options
author | Lovett, Trevor <trevor.lovett@att.com> | 2019-03-04 10:32:34 -0600 |
---|---|---|
committer | Lovett, Trevor (tl2972) <tl2972@att.com> | 2019-03-04 10:37:57 -0600 |
commit | 27299a14f4e0b70b495891314c6b6662a5b05ce5 (patch) | |
tree | 59a5c451f55073019ab11d91bf5e0a9ed4795d28 | |
parent | 5f53caf31c930151a66deb64f091a53c57129892 (diff) |
[VVP] Handle missing requirement in needs.json
Change-Id: Id22840cf58fdc0063f925a55672de58a9753b59c
Issue-ID: VVP-182
Signed-off-by: Lovett, Trevor (tl2972) <tl2972@att.com>
-rw-r--r-- | ice_validator/tests/conftest.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ice_validator/tests/conftest.py b/ice_validator/tests/conftest.py index 2c88ece..b165e39 100644 --- a/ice_validator/tests/conftest.py +++ b/ice_validator/tests/conftest.py @@ -209,7 +209,7 @@ class TestResult: """ text = ( "\n\n{}: \n{}".format(r_id, curr_reqs[r_id]["description"]) - for r_id in self.requirement_ids + for r_id in self.requirement_ids if r_id in curr_reqs ) return "".join(text) @@ -1033,7 +1033,7 @@ def load_current_requirements(): def select_heat_requirements(reqs): """Filters dict requirements to only those requirements pertaining to Heat""" - return {k: v for k, v in reqs.items() if "Heat" in v["docname"]} + return {k: v for k, v in reqs.items() if "heat" in v["docname"].lower()} def build_rst_json(reqs): |