potiuk commented on code in PR #32939:
URL: https://github.com/apache/airflow/pull/32939#discussion_r1278368462
##########
tests/operators/test_python.py:
##########
@@ -847,6 +847,16 @@ def default_kwargs(*, python_version=sys.version_info[0],
**kwargs):
kwargs["python_version"] = python_version
return kwargs
+ @mock.patch("airflow.operators.python.importlib")
+ def test_virtuenv_not_installed(self, importlib):
+ importlib.util.find_spec.return_value = None
+ with pytest.raises(AirflowException):
Review Comment:
CAn you please add `match=` and add the message regexp?
--
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]