Skip to content

Commit

Permalink
chore: bump bugbearer & fix some findings
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Kowalleck <[email protected]>
  • Loading branch information
jkowalleck committed Dec 10, 2023
1 parent e29b825 commit 146f558
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ ddt = "1.7.0"
coverage = "7.3.2"
flake8 = { version="6.1.0", python=">=3.8.1" }
flake8-annotations = { version="3.0.1", python=">=3.8.1" }
flake8-bugbear = { version="23.11.28", python=">=3.8.1" }
flake8-bugbear = { version="23.12.2", python=">=3.8.1" }
flake8-isort = "6.1.1"
flake8-quotes = "3.3.2"
flake8-use-fstring = "1.4"
Expand Down
6 changes: 3 additions & 3 deletions tests/test_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,8 +330,8 @@ def test_issue_type(self) -> None:
XsUri('https://central.sonatype.org/news/20211213_log4shell_help')
]
)
self.assertEqual(it.type, IssueClassification.SECURITY),
self.assertEqual(it.id, 'CVE-2021-44228'),
self.assertEqual(it.type, IssueClassification.SECURITY)
self.assertEqual(it.id, 'CVE-2021-44228')
self.assertEqual(it.name, 'Apache Log3Shell')
self.assertEqual(
it.description,
Expand All @@ -344,7 +344,7 @@ def test_issue_type(self) -> None:
'is specific to log4j-core and does not affect log4net, log4cxx, or other Apache Logging '
'Services projects.'
)
self.assertEqual(it.source.name, 'NVD'),
self.assertEqual(it.source.name, 'NVD')
self.assertEqual(it.source.url, XsUri('https://nvd.nist.gov/vuln/detail/CVE-2021-44228'))
self.assertSetEqual(it.references, {
XsUri('https://logging.apache.org/log4j/2.x/security.html'),
Expand Down

0 comments on commit 146f558

Please sign in to comment.