Skip to content

Commit

Permalink
fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
jedwards4b committed May 19, 2020
1 parent 418173f commit 49cd5e8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions manic/externals_description.py
Original file line number Diff line number Diff line change
Expand Up @@ -722,11 +722,12 @@ def __init__(self, model_data, components=None, exclude=None):
self._input_patch = 0
self._verify_schema_version()
if components:
for key in model_data.items():
for key in list(model_data.keys()):
if key not in components:
del model_data[key]

if exclude:
for key in model_data.items():
for key in list(model_data.keys()):
if key in exclude:
del model_data[key]

Expand Down
6 changes: 3 additions & 3 deletions test/test_unit_externals_description.py
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ def test_dict(self):
ext = create_externals_description(desc, model_format='dict')
self.assertIsInstance(ext, ExternalsDescriptionDict)

def test_container_component_dict(self):
def test_cfg_component_dict(self):
"""Verify that create_externals_description works with a dictionary
"""
# create the top level externals file
Expand All @@ -425,7 +425,7 @@ def test_container_component_dict(self):
self.assertTrue('simp_opt' in external)
self.assertTrue('mixed_req' in external)

def test_container_exclude_component_dict(self):
def test_cfg_exclude_component_dict(self):
"""Verify that exclude component checkout works with a dictionary
"""
# create the top level externals file
Expand All @@ -440,7 +440,7 @@ def test_container_exclude_component_dict(self):
self.assertFalse('simp_opt' in external)
self.assertTrue('mixed_req' in external)

def test_container_opt_component_dict(self):
def test_cfg_opt_component_dict(self):
"""Verify that exclude component checkout works with a dictionary
"""
# create the top level externals file
Expand Down

0 comments on commit 49cd5e8

Please sign in to comment.