Currently the operator allows to set requirement as list that needs to be hard coded.
It would be nice if airflow can support reading from file directly (something similar to how operators read sql file)
tests/operators/test_python.py
assert len(context) > 0, "Context has not been injected"
        python_operator = PythonOperator(
            task_id='python_operator', op_kwargs={'custom': 1}, python_callable=func, dag=self.dag
        )
        python_operator.run(start_date=DEFAULT_DATE, end_date=DEFAULT_DATE)
    def test_return_value_log_with_show_return_value_in_logs_default(self):
        self.dag.create_dagrun(
            run_type=DagRunType.MANUAL,
            execution_date=DEFAULT_DATE,
            start_date=DEFAULT_DATE,
            state=State.RUNNING,
            external_trigger=False,
        )
        def func():
            return 'test_return_value'
        python_operator = PythonOperator(task_id='python_operator', python_callable=func, dag=self.dag)
        with self.assertLogs('airflow.task.operators', level=logging.INFO) as cm:
            python_operator.run(start_date=DEFAULT_DATE, end_date=DEFAULT_DATE)
        assert (
            'INFO:airflow.task.operators:Done. Returned value was: test_return_value' in cm.output
        ), 'Return value should be shown'
    def test_return_value_log_with_show_return_value_in_logs_false(self):