danarwix commented on a change in pull request #18973:
URL: https://github.com/apache/airflow/pull/18973#discussion_r735086571
##########
File path: tests/api_connexion/schemas/test_xcom_schema.py
##########
@@ -29,169 +29,165 @@
from airflow.utils.session import create_session, provide_session
+class MockXcomCollectionItem:
+ DEFAULT_TIME = '2005-04-02T21:00:00+00:00'
+ DEFAULT_TIME_PARSED = parse_execution_date(DEFAULT_TIME)
+
+ def __init__(self):
+ self.example_ref = uuid.uuid4()
+ self.key: str = f'test_key_{self.example_ref}'
+ self.timestamp: datetime.datetime = self.DEFAULT_TIME_PARSED
+ self.execution_date: datetime.datetime = self.DEFAULT_TIME_PARSED
Review comment:
To be honest, i was starting developing with dataclasses and the
annotations are leftovers.
Just removed all annotations and moved the usage of `datetime.datetime` to
`airflow/airflow/utils/dates.py`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]