Skip to content

Commit

Permalink
Remove traces of airflow from tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cicdw committed Feb 7, 2020
1 parent b0f64c8 commit 86e1517
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 495 deletions.
21 changes: 0 additions & 21 deletions conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,6 @@


def pytest_addoption(parser):
parser.addoption(
"--airflow",
action="store_true",
dest="airflow",
help="including this flag will attempt to ONLY run airflow compatibility tests",
)
parser.addoption(
"--skip-formatting",
action="store_true",
Expand All @@ -19,28 +13,13 @@ def pytest_addoption(parser):


def pytest_configure(config):
config.addinivalue_line(
"markers", "airflow: mark test to run only when --airflow flag is provided."
)
config.addinivalue_line(
"markers",
"formatting: mark test as formatting to skip when --skip-formatting flag is provided.",
)


def pytest_runtest_setup(item):
air_mark = item.get_closest_marker("airflow")

# if a test IS marked as "airflow" and the airflow flag IS NOT set, skip it
if air_mark is not None and item.config.getoption("--airflow") is False:
pytest.skip(
"Airflow tests skipped by default unless --airflow flag provided to pytest."
)

# if a test IS NOT marked as airflow and the airflow flag IS set, skip it
elif air_mark is None and item.config.getoption("--airflow") is True:
pytest.skip("Non-Airflow tests skipped because --airflow flag was provided.")

formatting_mark = item.get_closest_marker("formatting")

# if a test IS marked as "formatting" and the --skip-formatting flag IS set, skip it
Expand Down
39 changes: 0 additions & 39 deletions src/prefect/tasks/airflow/__init__.py

This file was deleted.

247 changes: 0 additions & 247 deletions src/prefect/tasks/airflow/airflow.py

This file was deleted.

Empty file removed tests/tasks/airflow/__init__.py
Empty file.
Loading

0 comments on commit 86e1517

Please sign in to comment.