Skip to content

Commit 57addd9

Browse files
amitmoskovitzclaude
andcommitted
CM-64214: Fix ruff format issues in test file
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 382bdd8 commit 57addd9

1 file changed

Lines changed: 15 additions & 11 deletions

File tree

tests/cli/files_collector/sca/test_restore_maven_dependencies.py

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,14 @@ def test_returns_false_when_dependencies_list_is_empty(self) -> None:
2828
assert _has_dependency_graph(content) is False
2929

3030
def test_returns_true_when_at_least_one_dependency_has_depends_on(self) -> None:
31-
content = json.dumps({
32-
'dependencies': [
33-
{'ref': 'pkg:maven/com.example/root@1.0', 'dependsOn': ['pkg:maven/io.netty/netty-all@4.1.0']},
34-
{'ref': 'pkg:maven/io.netty/netty-all@4.1.0', 'dependsOn': []},
35-
]
36-
})
31+
content = json.dumps(
32+
{
33+
'dependencies': [
34+
{'ref': 'pkg:maven/com.example/root@1.0', 'dependsOn': ['pkg:maven/io.netty/netty-all@4.1.0']},
35+
{'ref': 'pkg:maven/io.netty/netty-all@4.1.0', 'dependsOn': []},
36+
]
37+
}
38+
)
3739
assert _has_dependency_graph(content) is True
3840

3941
def test_returns_false_when_content_is_invalid_json(self) -> None:
@@ -74,11 +76,13 @@ def test_returns_bom_document_when_dependency_graph_is_present(self) -> None:
7476
document.content = 'some content'
7577

7678
bom_doc = MagicMock(spec=Document)
77-
bom_doc.content = json.dumps({
78-
'dependencies': [
79-
{'ref': 'pkg:maven/com.example/root@1.0', 'dependsOn': ['pkg:maven/io.netty/netty@4.1.0']}
80-
]
81-
})
79+
bom_doc.content = json.dumps(
80+
{
81+
'dependencies': [
82+
{'ref': 'pkg:maven/com.example/root@1.0', 'dependsOn': ['pkg:maven/io.netty/netty@4.1.0']}
83+
]
84+
}
85+
)
8286

8387
with (
8488
patch.object(instance, 'get_manifest_file_path', return_value='/project/pom.xml'),

0 commit comments

Comments
 (0)