xchwan commented on PR #58123:
URL: https://github.com/apache/airflow/pull/58123#issuecomment-3519599647

   > The import is correct. The `tests` folders should be added to PYTHONPATH 
automatically. also the IDEs should nicely show them imported from the right 
place - but the problem was that our prek-hook had a bug and some of the 
folders created recently did not have properly namspaced `__init__.py` files.
   > 
   > Proper fix in #58211
   
   Thank you for your suggestion, but adding
   ```__path__ = __import__("pkgutil").extend_path(__path__, __name__)```
   — if I’m not mistaken — would cause it to import helm_template_generator 
from helm-tests/tests/chart_utils instead of from 
airflow-core/tests/unit/charts.
   Is that expected behavior?


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to