Pytest plugin for writing Azure Data Factory integration tests
Project description
ALPHA RELEASE
pytest-adf is a pytest plugin for writing Azure Data Factory integration tests. It is light-wrapper around the Azure Data Factory Python SDK.
Requirements
You will need the following:
Python 3+
Installation
To install pytest-adf:
pip install pytest-adf
Usage
Here is a simple usage of the adf_pipeline_run fixture.
def test_pipeline_succeeded(adf_pipeline_run):
this_run = adf_pipeline_run("my_pipeline", run_inputs={})
assert this_run.status == "Succeeded"
The adf_pipeline_run fixture provides a factory function that triggers a pipeline run when called. It will then block and poll the pipeline run till completion* before returning.
*Pipeline run completion is defined by the following status: “Succeeded”, “TimedOut”, “Failed”, “Cancelled”.
For more information see Github page.
Project details
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
Hashes for pytest_adf-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 487a2a3e820af08a36f4d9711a1791984347fea87367fc5367175d721192e70b |
|
MD5 | 6ba711039aac596d0fdc2c3dea61d4c1 |
|
BLAKE2b-256 | 10f0eedc351627c6f96bf66a7c288d28c50511ad8b91fd6d051f4a87810ff8bc |