Skip to content

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

Merged
jscheffl merged 1 commit into
apache:mainfrom
jscheffl:bugfix/41067-fix-tests-models-test_taskinstance
Aug 9, 2024
Merged

Fix tests/models/test_taskinstance.py for Database Isolation Tests#41344
jscheffl merged 1 commit into
apache:mainfrom
jscheffl:bugfix/41067-fix-tests-models-test_taskinstance

Conversation

@jscheffl

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Contributor

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:mainAug 9, 2024
potiuk pushed a commit that referenced this pull request Aug 11, 2024
@potiukpotiuk added this to the Airflow 2.10.0 milestone Aug 11, 2024
@jscheffl
jscheffl deleted the bugfix/41067-fix-tests-models-test_taskinstance branch October 5, 2025 07:40
Sign up for freeto 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

@jscheffl@bugraoz93@vincbeck@potiuk