'Test that CUSTOM_DOMAIN from FINANCIAL_REPORTS is used to construct file url. instead of domain defined via
AWS_S3_CUSTOM_DOMAIN setting.'

def test_financial_report_overrides(self):

    with override_settings(FINANCIAL_REPORTS={'STORAGE_TYPE': 's3', 'BUCKET': 'edx-financial-reports', 'CUSTOM_DOMAIN': 'edx-financial-reports.s3.amazonaws.com', 'ROOT_PATH': 'production'}):
        report_store = ReportStore.from_config(config_name='FINANCIAL_REPORTS')
        self.assertIn('edx-financial-reports.s3.amazonaws.com', report_store.storage.url(''))
