Skip to content

Commit

Permalink
fixed dateformat
Browse files Browse the repository at this point in the history
  • Loading branch information
yash-metron committed Feb 27, 2025
1 parent 41d2b7a commit 6b266b4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Packs/Doppel/Integrations/Doppel/Doppel_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -1012,11 +1012,12 @@ def test_get_remote_updated_incident_data_with_entry():
mock_client.get_alert.return_value = {
"id": doppel_alert_id,
"audit_logs": [
{"timestamp": "2025-01-01T00:00:00Z", "action": "Updated"},
{"timestamp": "2025-01-02T00:00:00Z", "action": "Created"}
{"timestamp": "2025-01-01T00:00:00.000000Z", "action": "Updated"}, # Include microseconds
{"timestamp": "2025-01-02T00:00:00.500000Z", "action": "Created"} # Include microseconds
]
}


Check failure on line 1020 in Packs/Doppel/Integrations/Doppel/Doppel_test.py

View workflow job for this annotation

GitHub Actions / pre-commit / pre-commit

test_get_remote_updated_incident_data_with_entry ValueError: unconverted data remains: Z
# Call function
updated_alert, entries = _get_remote_updated_incident_data_with_entry(mock_client, doppel_alert_id, last_update_str)

Expand Down

0 comments on commit 6b266b4

Please sign in to comment.