diff --git a/tests/api_fastapi/core_api/routes/public/test_dags.py b/tests/api_fastapi/core_api/routes/public/test_dags.py index aef11a5870c64..daa680b42d14e 100644 --- a/tests/api_fastapi/core_api/routes/public/test_dags.py +++ b/tests/api_fastapi/core_api/routes/public/test_dags.py @@ -302,7 +302,7 @@ def test_dag_details( "description": None, "doc_md": "details", "end_date": None, - "fileloc": "/opt/airflow/tests/api_fastapi/core_api/routes/public/test_dags.py", + "fileloc": __file__, "file_token": file_token, "has_import_errors": False, "has_task_concurrency_limits": True, @@ -363,7 +363,7 @@ def test_get_dag(self, test_client, query_params, dag_id, expected_status_code, "dag_id": dag_id, "dag_display_name": dag_display_name, "description": None, - "fileloc": "/opt/airflow/tests/api_fastapi/core_api/routes/public/test_dags.py", + "fileloc": __file__, "file_token": file_token, "is_paused": False, "is_active": True,