Skip to content

Commit f6047c0

Browse files
author
pz2
committed
added default values for constructor
1 parent 34c6190 commit f6047c0

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

secscanner2junit/config.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@
22

33

44
class Suppression:
5-
def __init__(self, id, type, value):
5+
6+
def __init__(self,
7+
id: str | None = None,
8+
type: str | None = None,
9+
value: str | None = None):
610
self.id = id
711
self.type = type
812
self.value = value

tests/test_config.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,6 @@ def test_get_config(self):
3535
config = get_config(input_config_path)
3636

3737
# then:
38-
expected = Config([Suppression('cwe', '2555'), Suppression('find_sec_bugs_type', 'SPRING_ENDPOINT')])
38+
expected = Config(
39+
[Suppression(type='cwe', value='2555'), Suppression(type='find_sec_bugs_type', value='SPRING_ENDPOINT')])
3940
self.assertEqual(expected, config)

0 commit comments

Comments
 (0)