Skip to content

Commit aeff58a

Browse files
committed
Apply ruff formatting to the WebInjection dataset test
The inline-seeds case wrapped the DatasetAttackConfiguration call across three lines; ruff format keeps it on one. Signed-off-by: abdelhadi703 <abdelhadisalmaoui0909@outlook.fr>
1 parent 3101438 commit aeff58a

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

‎tests/unit/scenario/garak/test_web_injection.py‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -246,9 +246,7 @@ async def test_inline_seeds_are_rejected(self, *, mock_objective_target: PromptT
246246
args={
247247
"objective_target": mock_objective_target,
248248
"scenario_techniques": [WebInjectionTechnique.TaskXSS],
249-
"dataset_config": DatasetAttackConfiguration(
250-
seeds=[SeedPrompt(value="task", dataset_name="inline")]
251-
),
249+
"dataset_config": DatasetAttackConfiguration(seeds=[SeedPrompt(value="task", dataset_name="inline")]),
252250
}
253251
)
254252
with pytest.raises(DatasetConstraintError, match="inline seeds are not supported"):

0 commit comments

Comments
 (0)