Utility used to unit test example Apache Airflow DAGs for Google Cloud Composer. This is not an officially supported Google product.
Project description
Cloud Composer DAG Testing Utility
This package is used internally to unit test the validity of all Cloud Composer sample DAGs. It is not supported for external production use. The latest release can be found on PyPI.
Instructions
Add the following to your requirements-test.txt
file:
cloud_composer_dag_test_utils
Import the internal unit testing module
import internal_unit_testing
Test your DAG
def test_dag_import():
# Set any variables if your DAG requires them
models.Variable.set('gcs_bucket', 'example_bucket')
from . import my_dag as module
# Check for DAG validity
internal_unit_testing.assert_has_valid_dag(module)
For more examples, refer to the workflows
directory.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file cloud_composer_dag_test_utils-1.0.0.tar.gz
.
File metadata
- Download URL: cloud_composer_dag_test_utils-1.0.0.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.8.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dbb22b640bdf05f413576453f463444f59e15127822d3ae4013a71f9b9ed75a8 |
|
MD5 | 833ea013fa4566b87ceb02b40e47d359 |
|
BLAKE2b-256 | 49c0547208ccb8185eff2bc9b2856cce520c4a7b0356154700ca46410c8454c3 |
File details
Details for the file cloud_composer_dag_test_utils-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: cloud_composer_dag_test_utils-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.8.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a024e5a80f09a318be26eaed38a80f85067d109f1b8d1461d7233f3302ce9042 |
|
MD5 | aed8285ec02e73238b32301079797cdb |
|
BLAKE2b-256 | f9983fc386099edbabfd7163841ad5293a7b9b0fbcfa26b917bbcc356fce3ecd |