Skip to content

Commit

Permalink
Merge pull request #1011 from GitGuardian/agateau/fix-flaky-test
Browse files Browse the repository at this point in the history
Unflakify test_text_output.py::test_leak_message()
  • Loading branch information
agateau-gg authored Nov 18, 2024
2 parents 8c87cf9 + 2a85b87 commit 5d49a31
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/unit/verticals/secret/output/test_sarif_output.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import json
from copy import deepcopy
from typing import Any, Dict, TypedDict
from unittest import mock

Expand Down Expand Up @@ -166,6 +167,7 @@ def test_sarif_output_for_flat_scan_with_secrets(
WHEN SecretSARIFOutputHandler runs on it
THEN it outputs a SARIF document pointing to the secrets
"""
scan_result = deepcopy(scan_result)
client_mock = mock.Mock(spec=GGClient)
client_mock.retrieve_secret_incident.return_value = SECRET_INCIDENT_MOCK

Expand Down

0 comments on commit 5d49a31

Please sign in to comment.