Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions test/rhsmlib/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ def setUpClass(cls) -> None:
**cls.dbus_class_kwargs,
)

super().setUpClass()

@classmethod
def tearDownClass(cls) -> None:
# Unload current DBus class
Expand All @@ -127,9 +129,13 @@ def tearDownClass(cls) -> None:
except AttributeError as exc:
raise RuntimeError(f"Object {patch} cannot be stopped.") from exc

super().tearDownClass()

def tearDown(self) -> None:
# Always reset the locale to default value.
# Some tests (Attach, for example) are passing non-english language
# strings to DBus methods, which are changing the global locale
# settings. This teardown makes sure the language will always be reset.
Locale.set(self.LOCALE)

super().tearDown()