Initial commit of integrated agent system
This commit is contained in:
10
backend/tests/test_analysis_tools.py
Normal file
10
backend/tests/test_analysis_tools.py
Normal file
@@ -0,0 +1,10 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from datetime import datetime, timedelta
|
||||
|
||||
from backend.tools.analysis_tools import _resolved_date
|
||||
|
||||
|
||||
def test_resolved_date_clamps_future_date():
|
||||
future_date = (datetime.today() + timedelta(days=2)).strftime("%Y-%m-%d")
|
||||
|
||||
assert _resolved_date(future_date) == datetime.today().strftime("%Y-%m-%d")
|
||||
Reference in New Issue
Block a user