JavierLopezT commented on issue #6670: [AIRFLOW-4816]MySqlToS3Operator
URL: https://github.com/apache/airflow/pull/6670#issuecomment-593514642
 
 
   Also, what is this? Would this prevent the code for passing all the checks?
   ```
   _________________ TestOperatorsHooks.test_no_illegal_suffixes 
__________________
   self = <tests.test_project_structure.TestOperatorsHooks 
testMethod=test_no_illegal_suffixes>
       def test_no_illegal_suffixes(self):
           illegal_suffixes = ["_operator.py", "_hook.py", "_sensor.py"]
           files = itertools.chain(*[
               
glob.glob(f"{ROOT_FOLDER}/{part}/providers/**/{resource_type}/*.py", 
recursive=True)
               for resource_type in ["operators", "hooks", "sensors", 
"example_dags"]
               for part in ["airlfow", "tests"]
           ])
       
           invalid_files = [
               f
               for f in files
               if any(f.endswith(suffix) for suffix in illegal_suffixes)
           ]
       
   >       self.assertEqual([], invalid_files)
   E       AssertionError: Lists differ: [] != 
['/opt/airflow/tests/providers/amazon/aws/[35 chars].py']
   E       
   E       Second list contains 1 additional elements.
   E       First extra element 0:
   E       
'/opt/airflow/tests/providers/amazon/aws/operators/test_mysql_to_s3_operator.py'
   E       
   E       - []
   E       + 
['/opt/airflow/tests/providers/amazon/aws/operators/test_mysql_to_s3_operator.py']
   tests/test_project_structure.py:267: AssertionError
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to