Skip to content

Commit

Permalink
small datetime change in test
Browse files Browse the repository at this point in the history
  • Loading branch information
safouuwa committed Jan 20, 2025
1 parent 60e7810 commit b125581
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions C#api/Tests/RequestLog/test_requestlog.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import os
import time
import json
from datetime import datetime, timedelta
from datetime import datetime, timedelta, timezone

BASE_URL = "http://localhost:3000/api/v2"
base_path = os.path.abspath(__file__)
Expand Down Expand Up @@ -286,7 +286,7 @@ def test_filter_requests_by_date(client):
response = client.delete(f"transfers/{created_transfer.pop('Id')}")

headers = {"API_KEY": "a1b2c3d4e5"}
current_date = datetime.now().strftime("%d-%m-%Y")
current_date = (datetime.now(timezone.utc) + timedelta(hours=1)).strftime("%d-%m-%Y")
response = client.get(f"/RequestLog/filter?date={current_date}", headers=headers)
assert response.status_code == 200

Expand Down

0 comments on commit b125581

Please sign in to comment.