You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/08/31 18:01:07 UTC

[GitHub] [airflow] potiuk edited a comment on pull request #17946: Add robots.txt and X-Robots-Tag header

potiuk edited a comment on pull request #17946:
URL: https://github.com/apache/airflow/pull/17946#issuecomment-909463384


   Cool. Thanks for that ! The easiest way to add tests is to add separate package for `/robots` endpoint + check in the home test view if the header is returned : https://github.com/apache/airflow/blob/main/tests/www/views/test_views_home.py 
   
   The setup is rather easy. For those tests you can setup local virtualenv (https://github.com/apache/airflow/blob/main/LOCAL_VIRTUALENV.rst) - classic python virtualenv  and run `pytest` tests there (make sure to init the db before or run the test once with ``--with-db-init`` custom flag.
   
   
   You can also setup BREEZE  with  (https://github.com/apache/airflow/blob/main/BREEZE.rst)  - thi s  more compleete  environment whicch is docker -compose  based and is the exact replica of what happens in hthe CI.  This is as simple as running `./breeze` and  the script should guide you  and  eventually  you should be dropped tinto basjh interpreter inside breeze container with everyything read y to run pytest  with the test  to run (your sources will be mounted in container so you can  edit them locally and run in container immediately) . Also recommend to install pre-commit (`pre-commit install`) in your repo, so that all static checks will be run at commit time.


-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org