Skip to content

Commit

Permalink
🎨 [pre-commit.ci] Auto format from pre-commit.com hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] authored and dwreeves committed Dec 2, 2023
1 parent 71c30ac commit 0f2ca10
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tests/plugin/test_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,11 @@ def conf_get(section, key, *args, **kwargs):
mock_open_file.assert_called_once()
assert response.status_code == 200
if artifact == "dbt_docs_index.html":
assert iframe_script in response.text


# Airflow < 2.4 uses an old version of Werkzeug that does not have Response.text.
if not hasattr(response, "text"):
assert iframe_script in response.get_data(as_text=True)
else:
assert iframe_script in response.text


@pytest.mark.parametrize("artifact", ["dbt_docs_index.html", "manifest.json", "catalog.json"])
Expand Down

0 comments on commit 0f2ca10

Please sign in to comment.