Skip to content

Commit

Permalink
Update app configuration after initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
hussein-awala committed Dec 23, 2023
1 parent b6f9154 commit 826f4e9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/api_connexion/endpoints/test_dag_run_endpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -1870,7 +1870,8 @@ def test_should_respond_404(self):
def test_should_respond_200_with_anonymous_user(self, dag_maker, session):
from airflow.www import app as application

app = application.create_app(config={"AUTH_ROLE_PUBLIC": "Admin"}, testing=True)
app = application.create_app(testing=True)
app.config["AUTH_ROLE_PUBLIC"] = "Admin"
dag_runs = self._create_test_dag_run(DagRunState.SUCCESS)
session.add_all(dag_runs)
session.commit()
Expand Down

0 comments on commit 826f4e9

Please sign in to comment.