Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing unittest setup calls #2550

Merged
merged 2 commits into from
Nov 6, 2024
Merged
Show file tree
Hide file tree
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
2 changes: 2 additions & 0 deletions test/picardtestcase.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,9 @@ def get_release_group_by_id(self, rg_id): # pylint: disable=no-self-use


class PicardTestCase(unittest.TestCase):

def setUp(self):
super().setUp()
log.set_level(logging.DEBUG)
setup_gettext(None, 'C')
self.tagger = FakeTagger()
Expand Down
1 change: 1 addition & 0 deletions test/test_debug_opt.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ class DebugOptTestCase(DebugOptEnum):

class TestDebugOpt(PicardTestCase):
def setUp(self):
super().setUp()
DebugOptTestCase.set_registry(set())

def test_enabled(self):
Expand Down
1 change: 1 addition & 0 deletions test/test_mbjson.py
Original file line number Diff line number Diff line change
Expand Up @@ -664,6 +664,7 @@ def test_locale_specific_match_first_exc2(self):
class TestAliasesLocales(PicardTestCase):

def setUp(self):
super().setUp()
self.maxDiff = None

self.aliases = [
Expand Down
3 changes: 0 additions & 3 deletions test/test_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,6 @@ def setUp(self):
def get_metadata_object():
pass

def tearDown(self):
pass

def test_metadata_setitem(self):
self.assertEqual(["single1-value"], self.metadata.getraw("single1"))
self.assertEqual(["single2-value"], self.metadata.getraw("single2"))
Expand Down
3 changes: 0 additions & 3 deletions test/test_plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,6 @@ def setUp(self):
super().setUp()
logging.disable(logging.ERROR)

def tearDown(self):
pass


class TestPicardPluginsCommonTmpDir(TestPicardPluginsCommon):

Expand Down
Loading