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

Improve Astro CLI DAGs tests so hatch test-cov doesn't fail #97

Merged
merged 1 commit into from
Nov 28, 2024

Conversation

tatiana
Copy link
Collaborator

@tatiana tatiana commented Nov 28, 2024

When trying to run the following locally:

hatch run tests.py3.10-2.9:test-cov

We'd get this failure:

FAILED dev/tests/dags/test_dag_example.py::test_dag_retries[dags/ray_single_operator.py] - TypeError: '>=' not supported between instances of 'NoneType' and 'int'
FAILED dev/tests/dags/test_dag_example.py::test_dag_retries[dags/ray_taskflow_example.py] - TypeError: '>=' not supported between instances of 'NoneType' and 'int'
FAILED dev/tests/dags/test_dag_example.py::test_dag_retries[dags/setup-teardown.py] - TypeError: '>=' not supported between instances of 'NoneType' and 'int'
FAILED dev/tests/dags/test_dag_example.py::test_dag_retries[dags/ray_taskflow_example_existing_cluster.py] - TypeError: '>=' not supported between instances of 'NoneType' and 'int'

This PR fixes this.

… fail

FAILED dev/tests/dags/test_dag_example.py::test_dag_retries[dags/ray_single_operator.py] - TypeError: '>=' not supported between instances of 'NoneType' and 'int'
FAILED dev/tests/dags/test_dag_example.py::test_dag_retries[dags/ray_taskflow_example.py] - TypeError: '>=' not supported between instances of 'NoneType' and 'int'
FAILED dev/tests/dags/test_dag_example.py::test_dag_retries[dags/setup-teardown.py] - TypeError: '>=' not supported between instances of 'NoneType' and 'int'
FAILED dev/tests/dags/test_dag_example.py::test_dag_retries[dags/ray_taskflow_example_existing_cluster.py] - TypeError: '>=' not supported between instances of 'NoneType' and 'int'
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.22%. Comparing base (be298c8) to head (145ed84).

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #97   +/-   ##
=======================================
  Coverage   98.22%   98.22%           
=======================================
  Files           5        5           
  Lines         564      564           
=======================================
  Hits          554      554           
  Misses         10       10           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@tatiana tatiana merged commit ae1adad into main Nov 28, 2024
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants