Repository navigation
Add missing test modules in our unit test suite #35442
Copy link
Copy link
Closed as not planned
Labels
kind:metaHigh-level information important to the communityHigh-level information important to the community
Description
See test_providers_modules_should_have_tests in tests/always/test_project_structure.py but those tests are missing currently:
Provider amazon
- tests/providers/amazon/aws/executors/ecs/test_boto_schema.py
- tests/providers/amazon/aws/executors/ecs/test_ecs_executor_config.py
- tests/providers/amazon/aws/executors/ecs/test_utils.py
- tests/providers/amazon/aws/fs/test_s3.py
- tests/providers/amazon/aws/hooks/test_dms.py
- tests/providers/amazon/aws/links/test_base_aws.py
- tests/providers/amazon/aws/links/test_batch.py
- tests/providers/amazon/aws/links/test_emr.py
- tests/providers/amazon/aws/links/test_glue.py
- tests/providers/amazon/aws/links/test_logs.py
- tests/providers/amazon/aws/operators/test_dms.py
- tests/providers/amazon/aws/operators/test_emr.py
- tests/providers/amazon/aws/operators/test_s3.py
- tests/providers/amazon/aws/operators/test_sagemaker.py
- tests/providers/amazon/aws/sensors/test_dms.py
- tests/providers/amazon/aws/sensors/test_emr.py
- tests/providers/amazon/aws/sensors/test_s3.py
- tests/providers/amazon/aws/sensors/test_sagemaker.py
- tests/providers/amazon/aws/test_exceptions.py
- tests/providers/amazon/aws/triggers/test_athena.py
- tests/providers/amazon/aws/triggers/test_batch.py
- tests/providers/amazon/aws/triggers/test_eks.py
- tests/providers/amazon/aws/triggers/test_emr.py
- tests/providers/amazon/aws/triggers/test_glue_crawler.py
- tests/providers/amazon/aws/triggers/test_lambda_function.py
- tests/providers/amazon/aws/triggers/test_rds.py
- tests/providers/amazon/aws/triggers/test_redshift_cluster.py
- tests/providers/amazon/aws/triggers/test_step_function.py
- tests/providers/amazon/aws/utils/test_rds.py
- tests/providers/amazon/aws/utils/test_sagemaker.py
- tests/providers/amazon/aws/utils/test_sqs.py
- tests/providers/amazon/aws/utils/test_tags.py
- tests/providers/amazon/aws/waiters/test_base_waiter.py
Provider apache.cassandra
- tests/providers/apache/cassandra/hooks/test_cassandra.py
Provider apache.drill
- tests/providers/apache/drill/operators/test_drill.py
Provider apache.druid
- tests/providers/apache/druid/operators/test_druid_check.py
Provider apache.hdfs
- tests/providers/apache/hdfs/hooks/test_hdfs.py
- tests/providers/apache/hdfs/log/test_hdfs_task_handler.py
- tests/providers/apache/hdfs/sensors/test_hdfs.py
Provider apache.hive
- tests/providers/apache/hive/plugins/test_hive.py
- tests/providers/apache/hive/transfers/test_mssql_to_hive.py
Provider apache.kafka
- tests/providers/apache/kafka/hooks/test_base.py
- tests/providers/apache/kafka/hooks/test_client.py
- tests/providers/apache/kafka/hooks/test_consume.py
- tests/providers/apache/kafka/hooks/test_produce.py
Provider celery
- tests/providers/celery/executors/test_celery_executor_utils.py
- tests/providers/celery/executors/test_default_celery.py
Provider cncf.kubernetes
- tests/providers/cncf/kubernetes/backcompat/test_backwards_compat_converters.py
- tests/providers/cncf/kubernetes/executors/test_kubernetes_executor_types.py
- tests/providers/cncf/kubernetes/executors/test_kubernetes_executor_utils.py
- tests/providers/cncf/kubernetes/operators/test_kubernetes_pod.py
- tests/providers/cncf/kubernetes/test_k8s_model.py
- tests/providers/cncf/kubernetes/test_kube_client.py
- tests/providers/cncf/kubernetes/test_kube_config.py
- tests/providers/cncf/kubernetes/test_pod_generator_deprecated.py
- tests/providers/cncf/kubernetes/test_pod_launcher_deprecated.py
- tests/providers/cncf/kubernetes/test_python_kubernetes_script.py
- tests/providers/cncf/kubernetes/test_secret.py
- tests/providers/cncf/kubernetes/triggers/test_kubernetes_pod.py
- tests/providers/cncf/kubernetes/utils/test_delete_from.py
- tests/providers/cncf/kubernetes/utils/test_k8s_hashlib_wrapper.py
- tests/providers/cncf/kubernetes/utils/test_xcom_sidecar.py
Provider common.io
- tests/providers/common/io/operators/test_file_transfer.py
Provider databricks
- tests/providers/databricks/hooks/test_databricks_base.py
Provider dbt.cloud
- tests/providers/dbt/cloud/hooks/test_dbt.py
- tests/providers/dbt/cloud/operators/test_dbt.py
- tests/providers/dbt/cloud/sensors/test_dbt.py
- tests/providers/dbt/cloud/triggers/test_dbt.py
Provider docker
- tests/providers/docker/test_exceptions.py
Provider elasticsearch
- tests/providers/elasticsearch/log/test_es_json_formatter.py
- tests/providers/elasticsearch/log/test_es_response.py
Provider google
- tests/providers/google/cloud/fs/test_gcs.py
- tests/providers/google/cloud/links/test_automl.py
- tests/providers/google/cloud/links/test_base.py
- tests/providers/google/cloud/links/test_bigquery.py
- tests/providers/google/cloud/links/test_bigquery_dts.py
- tests/providers/google/cloud/links/test_bigtable.py
- tests/providers/google/cloud/links/test_cloud_build.py
- tests/providers/google/cloud/links/test_cloud_functions.py
- tests/providers/google/cloud/links/test_cloud_memorystore.py
- tests/providers/google/cloud/links/test_cloud_sql.py
- tests/providers/google/cloud/links/test_cloud_storage_transfer.py
- tests/providers/google/cloud/links/test_cloud_tasks.py
- tests/providers/google/cloud/links/test_compute.py
- tests/providers/google/cloud/links/test_data_loss_prevention.py
- tests/providers/google/cloud/links/test_datacatalog.py
- tests/providers/google/cloud/links/test_dataflow.py
- tests/providers/google/cloud/links/test_dataform.py
- tests/providers/google/cloud/links/test_datafusion.py
- tests/providers/google/cloud/links/test_dataplex.py
- tests/providers/google/cloud/links/test_dataprep.py
- tests/providers/google/cloud/links/test_dataproc.py
- tests/providers/google/cloud/links/test_datastore.py
- tests/providers/google/cloud/links/test_kubernetes_engine.py
- tests/providers/google/cloud/links/test_life_sciences.py
- tests/providers/google/cloud/links/test_mlengine.py
- tests/providers/google/cloud/links/test_pubsub.py
- tests/providers/google/cloud/links/test_spanner.py
- tests/providers/google/cloud/links/test_stackdriver.py
- tests/providers/google/cloud/links/test_vertex_ai.py
- tests/providers/google/cloud/links/test_workflows.py
- tests/providers/google/cloud/operators/vertex_ai/test_auto_ml.py
- tests/providers/google/cloud/operators/vertex_ai/test_batch_prediction_job.py
- tests/providers/google/cloud/operators/vertex_ai/test_custom_job.py
- tests/providers/google/cloud/operators/vertex_ai/test_dataset.py
- tests/providers/google/cloud/operators/vertex_ai/test_endpoint_service.py
- tests/providers/google/cloud/operators/vertex_ai/test_hyperparameter_tuning_job.py
- tests/providers/google/cloud/operators/vertex_ai/test_model_service.py
- tests/providers/google/cloud/operators/vertex_ai/test_pipeline_job.py
- tests/providers/google/cloud/sensors/test_dataform.py
- tests/providers/google/cloud/transfers/test_bigquery_to_sql.py
- tests/providers/google/cloud/transfers/test_presto_to_gcs.py
- tests/providers/google/cloud/transfers/test_trino_to_gcs.py
- tests/providers/google/cloud/triggers/test_cloud_composer.py
- tests/providers/google/cloud/transfers/test_bigquery_to_mssql.py
- tests/providers/google/cloud/transfers/test_mssql_to_gcs.py
- tests/providers/google/cloud/utils/test_bigquery.py
- tests/providers/google/cloud/utils/test_bigquery_get_data.py
- tests/providers/google/cloud/utils/test_dataform.py
- tests/providers/google/common/links/test_storage.py
- tests/providers/google/common/test_consts.py
- tests/providers/google/test_go_module_utils.py
Provider microsoft.azure
- tests/providers/microsoft/azure/fs/test_adls.py
- tests/providers/microsoft/azure/hooks/test_batch.py
- tests/providers/microsoft/azure/hooks/test_container_instance.py
- tests/providers/microsoft/azure/hooks/test_container_registry.py
- tests/providers/microsoft/azure/hooks/test_container_volume.py
- tests/providers/microsoft/azure/hooks/test_cosmos.py
- tests/providers/microsoft/azure/hooks/test_data_factory.py
- tests/providers/microsoft/azure/hooks/test_data_lake.py
- tests/providers/microsoft/azure/hooks/test_fileshare.py
- tests/providers/microsoft/azure/hooks/test_synapse.py
- tests/providers/microsoft/azure/operators/test_adls.py
- tests/providers/microsoft/azure/operators/test_batch.py
- tests/providers/microsoft/azure/operators/test_container_instances.py
- tests/providers/microsoft/azure/operators/test_cosmos.py
- tests/providers/microsoft/azure/operators/test_data_factory.py
- tests/providers/microsoft/azure/operators/test_synapse.py
- tests/providers/microsoft/azure/secrets/test_key_vault.py
- tests/providers/microsoft/azure/sensors/test_cosmos.py
- tests/providers/microsoft/azure/sensors/test_data_factory.py
- tests/providers/microsoft/azure/transfers/test_azure_blob_to_gcs.py
- tests/providers/microsoft/azure/triggers/test_data_factory.py
- tests/providers/microsoft/azure/triggers/test_wasb.py
Provider mongo
- tests/providers/mongo/sensors/test_mongo.py
Provider openlineage
- tests/providers/openlineage/extractors/test_base.py
- tests/providers/openlineage/extractors/test_bash.py
- tests/providers/openlineage/extractors/test_manager.py
- tests/providers/openlineage/extractors/test_python.py
- tests/providers/openlineage/plugins/test_adapter.py
- tests/providers/openlineage/plugins/test_facets.py
- tests/providers/openlineage/plugins/test_macros.py
- tests/providers/openlineage/test_sqlparser.py
Provider presto
- tests/providers/presto/transfers/test_gcs_to_presto.py
Provider redis
- tests/providers/redis/operators/test_redis_publish.py
- tests/providers/redis/sensors/test_redis_key.py
Provider slack
- tests/providers/slack/notifications/test_slack_notifier.py
Provider snowflake
- tests/providers/snowflake/triggers/test_snowflake_trigger.py
Provider trino
- tests/providers/trino/transfers/test_gcs_to_trino.py
Committer
- I acknowledge that I am a maintainer/committer of the Apache Airflow project.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
kind:metaHigh-level information important to the communityHigh-level information important to the community
Activity
potiuk commentedon Nov 4, 2023
cc: @eladkal
Fix test to test if we miss tests (AKA 'who tests the tests')
Fix test to test if we miss tests (AKA 'who tests the tests') (#35443)
Add mising common.io test_file_transfer.py
potiuk commentedon Nov 5, 2023
@eladkal -> first test removed from the list with #35457 -> I hope you can bring more people to contribute here :)
potiuk commentedon Nov 5, 2023
Also related to #35127
potiuk commentedon Nov 5, 2023
cc: @ephraimbuddy -> this might guide people on where to add tests to cover whole modules that are not "targeted" for tests (they might still be accidentally tested by other modules but they do not have dedicated module tests) - this might help people to make decision on where to add some tests. Also this is a nice list of "todos"
[-]Tests that tested all our tests was broken and we need to add many tests[/-][+]Add missing test modules in our unit test suite[/+]Add mising common.io test_file_transfer.py (#35457)
Taragolis commentedon Nov 5, 2023
I think how to exclude case when the original module
airflow.providers.slack.notifications.slack_notifieris deprecatedTaragolis commentedon Nov 5, 2023
And just add here previous investigation about missing tests #28459 (comment), non all of them actually missing:
Taragolis commentedon Nov 5, 2023
And
codecovstatistic also might help to found untested parts: https://app.codecov.io/gh/apache/airflow/tree/main/airflow%2Fproviderseladkal commentedon Nov 5, 2023
In similar cases we used to have deprecated classes list and we removed it from the output
49 remaining items
Add missing unit tests for the Celery default configuration builder
Add missing unit tests for common.compat lineage entities (#72506)
keith991001 commentedon Sep 11, 2026
Picking up the missing test module for the common-messaging provider base class:
providers/common/messaging/tests/unit/common/messaging/providers/test_base_provider.pyChecked for existing claims and open PRs covering this path first — none found. Will remove the corresponding entry from
OVERLOOKED_TESTSin the same PR.Drafted-by: Claude Code (Fable 5) (no human review before posting)
Add tests for the AWS Batch executor boto schemas (apache#72609)
Add missing unit tests for common.compat lineage entities (apache#72506)
ShousenZHANG commentedon Sep 11, 2026
Taking
providers/google/tests/unit/google/cloud/links/test_bigquery_dts.py.It covers one class,
BigQueryDataTransferConfigLink, and follows the three checks the sibling link tests already use — class attributes, thepersistXCom payload, and_format_linkagainstBASE_LINK(same shape astest_bigquery.pyfrom #68066).The
OVERLOOKED_TESTSentry goes in the same PR.No overlap with
test_cloud_tasks.py(#72846). If this shape is acceptable I'd like to keep working through the othergoogle/cloud/links/entries — there are 19 left after that one.Add missing unit tests for the common-messaging provider base class (#…
ShousenZHANG commentedon Sep 11, 2026
Following up on my earlier comment: I have gone through the rest of the
providers/google/tests/unit/google/cloud/links/entries in the list. Posting the full sethere so nobody duplicates the work. Each PR adds one test module and removes only its own
OVERLOOKED_TESTSline.test_bigquery_dts.pytest_dataprep.pytest_datastore.pytest_bigtable.pytest_cloud_build.pytest_cloud_functions.pytest_cloud_memorystore.pytest_cloud_sql.pytest_compute.pytest_data_loss_prevention.pytest_dataflow.pytest_dataform.pytest_datafusion.pytest_dataproc.pytest_kubernetes_engine.pytest_pubsub.pytest_spanner.pytest_stackdriver.pytest_translate.pytest_workflows.pytest_cloud_tasks.pyis deliberately left out — #72846 already covers it.They all follow the three checks the existing
test_bigquery.py(#68066) in the samedirectory uses: the class attributes, the
persistXCom payload, and the_format_linkoutput. A few modules needed extra cases and those are called out in the individual PRs —
KubernetesEngineClusterLinkand the twooutput_configtranslate links overridepersist,and Cloud Functions, Compute, DLP, Dataproc, Translate and the Data Fusion instance link
build their constants on
BASE_LINKso_format_linkdoes not prefix the console base asecond time.
One thing worth flagging: because these all delete adjacent lines from the same
OVERLOOKED_TESTSblock, they will conflict with each other as they merge. I will rebase theremainder every time one lands. If you would rather review fewer PRs, say so and I will squash
them into a handful of grouped ones instead.
kaxil commentedon Sep 11, 2026
Closing this as obsolete.
The checklist in the description predates the provider restructure. All 182 paths in it use the old
tests/providers/...layout, which no longer exists, so neither the checked nor the unchecked entries map onto files in the repo today. The gap itself is not closed:OVERLOOKED_TESTScurrently carries 267 entries, more than this list ever tracked.That in-code list is the live source of truth and
test_providers_modules_should_have_testsenforces it, so it cannot go stale the way this description did:airflow/airflow-core/tests/unit/always/test_project_structure.py
Lines 57 to 63 in d076a57
Anyone who wants to fill one of these in can read the current list there. Open PRs already doing so are not affected by this closure.
One request for anyone picking these up: group them. A module at a time, claimed in a comment and opened as its own PR, means one review and one CI run per file, and they are all the same review. Batch a provider's worth of missing test modules into a single PR instead.
Add missing unit tests for common.compat lineage entities (apache#72506)
Add missing unit tests for the common-messaging provider base class (a…
Add missing unit tests for the common-messaging provider base class (a…
Add missing unit tests for the Celery default configuration builder