Skip to content

Commit

Permalink
fix: adapt test_views_task_norun.py
Browse files Browse the repository at this point in the history
Signed-off-by: sudipto baral <sudiptobaral.me@gmail.com>
  • Loading branch information
sudiptob2 committed Apr 13, 2024
1 parent 2a28871 commit 89a4dfb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/www/views/test_views_task_norun.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def test_task_view_no_task_instance(admin_client):
url = f"/task?task_id=runme_0&dag_id=example_bash_operator&execution_date={DEFAULT_VAL}"
resp = admin_client.get(url, follow_redirects=True)
assert resp.status_code == 200
html = resp.data.decode("utf-8")
html = resp.text
assert "<h5>No Task Instance Available</h5>" in html
assert "<h5>Task Instance Attributes</h5>" not in html

Expand All @@ -50,5 +50,5 @@ def test_rendered_templates_view_no_task_instance(admin_client):
url = f"/rendered-templates?task_id=runme_0&dag_id=example_bash_operator&execution_date={DEFAULT_VAL}"
resp = admin_client.get(url, follow_redirects=True)
assert resp.status_code == 200
html = resp.data.decode("utf-8")
html = resp.text
assert "Rendered Template" in html

0 comments on commit 89a4dfb

Please sign in to comment.