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.
Metadata
Release files for cloud-composer-dag-test-utils 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| cloud_composer_dag_test_utils-1.0.0.tar.gz | 2.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cloud_composer_dag_test_utils-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.1 kB
Release files / cloud_composer_dag_test_utils-1.0.0.tar.gz
| Download URL | cloud_composer_dag_test_utils-1.0.0.tar.gz |
|---|---|
| Size | 2.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dbb22b640bdf05f413576453f463444f59e15127822d3ae4013a71f9b9ed75a8
|
|
BLAKE2b-256 checksum How to use checksums |
49c0547208ccb8185eff2bc9b2856cce520c4a7b0356154700ca46410c8454c3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / cloud_composer_dag_test_utils-1.0.0-py3-none-any.whl
| Download URL | cloud_composer_dag_test_utils-1.0.0-py3-none-any.whl |
|---|---|
| Size | 3.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a024e5a80f09a318be26eaed38a80f85067d109f1b8d1461d7233f3302ce9042
|
|
BLAKE2b-256 checksum How to use checksums |
f9983fc386099edbabfd7163841ad5293a7b9b0fbcfa26b917bbcc356fce3ecd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|