Fix the tear down function in integration.modules.test_grains.GrainsAppendTestCase

Fix the tear down function to just set the grain to an empty list instead of
removing each individual item
This commit is contained in:
twangboy 2018-03-21 16:37:10 +00:00
parent 83ed40c06a
commit c179388b0e
No known key found for this signature in database
GPG key ID: 93FF3BDEB278C9EB

View file

@ -152,8 +152,7 @@ class GrainsAppendTestCase(ModuleCase):
GRAIN_VAL = 'my-grain-val'
def tearDown(self):
for item in self.run_function('grains.get', [self.GRAIN_KEY]):
self.run_function('grains.remove', [self.GRAIN_KEY, item])
self.run_function('grains.setval', [self.GRAIN_KEY, []])
def test_grains_append(self):
'''