Metadata-Version: 2.1
Name: pytest-adf
Version: 0.1.2
Summary: Pytest plugin for writing Azure Data Factory integration tests
Home-page: https://github.com/devlace/pytest-adf
Author: Lace Lofranco
Author-email: lace.lofranco@microsoft.com
Maintainer: Lace Lofranco
Maintainer-email: lace.lofranco@microsoft.com
License: MIT
Download-URL: https://github.com/devlace/pytest-adf/archive/v0.1.tar.gz
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Framework :: Pytest
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Testing
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Classifier: Operating System :: OS Independent
Classifier: License :: OSI Approved :: MIT License
Requires-Python: >=3.5
Requires-Dist: pytest (>=3.5.0)

pytest-adf
==========

*ALPHA RELEASE*

pytest-adf is a `pytest <https://docs.pytest.org/en/stable/>`_ plugin for writing Azure Data Factory
integration tests. It is light-wrapper around the `Azure Data Factory
Python SDK <https://azure.github.io/azure-sdk-for-python/ref/Data-Factory.html?highlight=datafactory>`_.

Requirements
------------

You will need the following:

-  Python 3+

Installation
------------

To install pytest-adf:

.. code:: python

   pip install pytest-adf

Usage
-----

Here is a simple usage of the ``adf_pipeline_run`` fixture.

.. code:: python

   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 <https://github.com/devlace/pytest-adf>`_.

