Skip to content

Commit

Permalink
webui tests: Reorganize inheritance to make all calls valid
Browse files Browse the repository at this point in the history
This is only a band-aid before any real cleanup.
  • Loading branch information
VladimirSlavik committed Oct 23, 2023
1 parent 00b4c96 commit 036781f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ui/webui/test/helpers/storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -372,13 +372,14 @@ def set_partitioning(self, scenario):
self.browser.wait_visible(self._partitioning_selector(scenario) + ":checked")


class StorageMountPointMapping(StorageDBus, StorageDestination):
class StorageMountPointMapping(StorageDBus, StorageDestination, StorageScenario):
def __init__(self, browser, machine):
self.browser = browser
self.machine = machine

StorageDBus.__init__(self, machine)
StorageDestination.__init__(self, browser, machine)
StorageScenario.__init__(self, browser, machine)

def table_row(self, row):
return f"#mount-point-mapping-table-row-{row}"
Expand Down Expand Up @@ -538,9 +539,8 @@ def wait_mountpoint_table_column_helper(self, row, column, text=None, present=Tr
self.browser.wait_not_present(f"#mount-point-mapping-table-row-{row}-{column} .pf-v5-c-helper-text__item.pf-m-error")


class Storage(StorageEncryption, StorageMountPointMapping, StorageScenario, StorageUtils):
class Storage(StorageEncryption, StorageMountPointMapping, StorageUtils):
def __init__(self, browser, machine):
StorageEncryption.__init__(self, browser, machine)
StorageMountPointMapping.__init__(self, browser, machine)
StorageScenario.__init__(self, browser, machine)
StorageUtils.__init__(self, browser, machine)

0 comments on commit 036781f

Please sign in to comment.