Skip to content

Commit 1b8e172

Browse files
author
Prasanna Santhanam
committed
integration test fix: test iso - obj reference within classmethod
1 parent cd7f771 commit 1b8e172

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

test/integration/smoke/test_iso.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -219,14 +219,14 @@ def setUpClass(cls):
219219
# Finding the OsTypeId from Ostype
220220
ostypes = list_os_types(
221221
cls.api_client,
222-
description=self.services["ostype"]
222+
description=cls.services["ostype"]
223223
)
224224
if not isinstance(ostypes, list):
225225
raise unittest.SkipTest("OSTypeId for given description not found")
226226

227-
self.services["iso_1"]["ostypeid"] = ostypes[0].id
228-
self.services["iso_2"]["ostypeid"] = ostypes[0].id
229-
self.services["ostypeid"] = ostypes[0].id
227+
cls.services["iso_1"]["ostypeid"] = ostypes[0].id
228+
cls.services["iso_2"]["ostypeid"] = ostypes[0].id
229+
cls.services["ostypeid"] = ostypes[0].id
230230

231231
cls.iso_1 = Iso.create(
232232
cls.api_client,

0 commit comments

Comments
 (0)