potiuk commented on code in PR #32669:
URL: https://github.com/apache/airflow/pull/32669#discussion_r1267147492


##########
TESTING.rst:
##########
@@ -55,8 +55,36 @@ Follow the guidelines when writing unit tests:
   tests, so we run Pytest with ``--disable-warnings`` but instead we have 
``pytest-capture-warnings`` plugin that
   overrides ``recwarn`` fixture behaviour.
 
-**NOTE:** We plan to convert all unit tests to standard "asserts" 
semi-automatically, but this will be done later
-in Airflow 2.0 development phase. That will include setUp/tearDown/context 
managers and decorators.
+
+.. note::
+
+  We are in the process of convert all unit tests to standard "asserts" and 
pytest fixtures
+  so if you find some tests that are still using classic setUp/tearDown 
approach or unittest asserts, feel
+  free to convert them to pytest.
+
+Airflow configuration for unit tests
+------------------------------------
+
+Some of the unit tests require special configuration set as the ``default``. 
This is done automatically by
+adding ``AIRFLOW__CORE__UNIT_TEST_MODE=True`` to the environment variables in 
Pytest auto-used
+fixture. This in turn makes airflow configuration load test configuration from

Review Comment:
   Reworded this paragraph and made sentences shorter.



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