Skip to content

Commit 095b297

Browse files
committed
tests/unit: add @staticmethod decorator to static methods
1 parent 7da7d44 commit 095b297

File tree

5 files changed

+10
-5
lines changed

5 files changed

+10
-5
lines changed

tests/unit/Design.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,8 @@ def test_Files(self):
140140

141141

142142
class Validate(TestCase):
143-
def test_Design(self):
143+
@staticmethod
144+
def test_Design():
144145
project = Project("project", rootDirectory=Path("tests/project"))
145146
design = Design("design", directory=Path("designA"), project=project)
146147

tests/unit/File.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,8 @@ def test_ResolveDirectory(self):
145145

146146

147147
class Validate(TestCase):
148-
def test_File(self):
148+
@staticmethod
149+
def test_File():
149150
project = Project("project", rootDirectory=Path("tests/project"))
150151
design = Design("design", directory=Path("designA"), project=project)
151152
fileSet = FileSet("fileset", design=design)

tests/unit/FileSet.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,8 @@ def test_SourceFile(self):
232232

233233

234234
class Validate(TestCase):
235-
def test_FileSet(self):
235+
@staticmethod
236+
def test_FileSet():
236237
project = Project("project", rootDirectory=Path("tests/project"))
237238
design = Design("design", directory=Path("designA"), project=project)
238239
fileSet = FileSet("fileset", design=design)

tests/unit/Files.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@ def test_GetVersionFromFileSet(self):
9696

9797
self.assertEqual(vhdlVersion, file.VHDLVersion)
9898

99-
def test_Validate(self):
99+
@staticmethod
100+
def test_Validate():
100101
project = Project("project", rootDirectory=Path("tests/project"), vhdlVersion=VHDLVersion.VHDL2019)
101102
design = Design("design", directory=Path("designA"), project=project)
102103
vhdlLibrary = VHDLLibrary("library", design=design)

tests/unit/Project.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,8 @@ def test_ResolveDirectory(self):
109109

110110

111111
class Validate(TestCase):
112-
def test_Project(self):
112+
@staticmethod
113+
def test_Project():
113114
project = Project("project", rootDirectory=Path("tests/project"))
114115

115116
project.Validate()

0 commit comments

Comments
 (0)