potiuk commented 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` a 
nd  the scroipt shoudl guide you  and  eventually  you should be dropped tinto 
basjh interepreter inside breeze container wwith everyything read y to run 
pytest  with tehe test  to run (your sources will be mounted in conttainer so 
you can  edit them locally and run in container immediateely) 


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