Improve tests for Storing Dag Code in DB (#8152)
Improve tests for Storing Dag Code in DB (#8152)

Original test does not cover the real case where DAG model actually calls `dag.sync_to_db()`. This is where the subdag fileloc is set to parent dag's fileloc, so it is important to change this behavior
apache/incubator-airflow,Acehaidrey/incubator-airflow,wooga/airflow,danielvdende/incubator-airflow,DinoCow/airflow,danielvdende/incubator-airflow,DinoCow/airflow,apache/incubator-airflow,mistercrunch/airflow,Acehaidrey/incubator-airflow,apache/airflow,dhuang/incubator-airflow,mrkm4ntr/incubator-airflow,Acehaidrey/incubator-airflow,dhuang/incubator-airflow,bolkedebruin/airflow,lyft/incubator-airflow,cfei18/incubator-airflow,DinoCow/airflow,danielvdende/incubator-airflow,lyft/incubator-airflow,Acehaidrey/incubator-airflow,lyft/incubator-airflow,bolkedebruin/airflow,apache/airflow,airbnb/airflow,mrkm4ntr/incubator-airflow,apache/airflow,lyft/incubator-airflow,nathanielvarona/airflow,nathanielvarona/airflow,wooga/airflow,wooga/airflow,bolkedebruin/airflow,bolkedebruin/airflow,Acehaidrey/incubator-airflow,sekikn/incubator-airflow,airbnb/airflow,airbnb/airflow,cfei18/incubator-airflow,apache/airflow,nathanielvarona/airflow,DinoCow/airflow,cfei18/incubator-airflow,dhuang/incubator-airflow,apache/airflow,mrkm4ntr/incubator-airflow,cfei18/incubator-airflow,cfei18/incubator-airflow,cfei18/incubator-airflow,mrkm4ntr/incubator-airflow,bolkedebruin/airflow,danielvdende/incubator-airflow,apache/airflow,nathanielvarona/airflow,dhuang/incubator-airflow,apache/incubator-airflow,wooga/airflow,danielvdende/incubator-airflow,apache/incubator-airflow,sekikn/incubator-airflow,mistercrunch/airflow,nathanielvarona/airflow,nathanielvarona/airflow,Acehaidrey/incubator-airflow,sekikn/incubator-airflow,mistercrunch/airflow,danielvdende/incubator-airflow,sekikn/incubator-airflow,mistercrunch/airflow,airbnb/airflow