Skip to content

Commit b018e5a

Browse files
committed
Follow naming convention for class methods
Signed-off-by: Haiko Schol <hs@haikoschol.com>
1 parent ef4e846 commit b018e5a

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

vulnerabilities/tests/test_data_dump.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,8 @@
4545

4646

4747
class TestDebianDataDump(TestCase):
48-
4948
@classmethod
50-
def setUpTestData(self):
49+
def setUpTestData(cls):
5150
with open(os.path.join(TEST_DATA, 'debian.json')) as f:
5251
test_data = json.load(f)
5352

@@ -122,7 +121,7 @@ def test_ResolvedPackage(self):
122121

123122
class TestUbuntuDataDump(TestCase):
124123
@classmethod
125-
def setUpTestData(self):
124+
def setUpTestData(cls):
126125
with open(os.path.join(TEST_DATA, 'ubuntu_main.html')) as f:
127126
test_data = f.read()
128127

@@ -144,9 +143,8 @@ def test_data_dump(self):
144143

145144

146145
class TestArchLinuxDataDump(TestCase):
147-
148146
@classmethod
149-
def setUpTestData(self):
147+
def setUpTestData(cls):
150148
with open(os.path.join(TEST_DATA, 'archlinux.json')) as f:
151149
test_data = json.load(f)
152150

0 commit comments

Comments
 (0)