Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix tests/models/test_taskinstance.py for Database Isolation Tests #41344

Conversation

jscheffl
Copy link
Contributor

@jscheffl jscheffl commented Aug 8, 2024

Related: #41067

Fixes the tests/models/test_taskinstance.py for Database Isolation Tests.

Small adjustments on conftest allowing to pass the serialization parameter also for task_instance only creations.

As I was reworking the tests, I needed to notice that the function get_previous_start_date() was missing on the pydantic model - added in scope of this PR.

FYI @bugraoz93

@bugraoz93
Copy link
Collaborator

This is used from multiple sources in the tests. Thanks for the change! I think it will make it easy to fix the test using this method from conftest.

@jscheffl jscheffl merged commit f811ac3 into apache:main Aug 9, 2024
49 checks passed
jscheffl added a commit to jscheffl/airflow that referenced this pull request Aug 9, 2024
potiuk pushed a commit that referenced this pull request Aug 11, 2024
@potiuk potiuk added this to the Airflow 2.10.0 milestone Aug 11, 2024
molcay pushed a commit to VladaZakharova/airflow that referenced this pull request Aug 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants