potiuk commented on code in PR #27948:
URL: https://github.com/apache/airflow/pull/27948#discussion_r1033022109
##########
tests/providers/apache/hdfs/sensors/test_hdfs.py:
##########
@@ -200,21 +191,22 @@ def test_should_be_non_empty_directory_fail(self):
task.execute(None)
-class TestHdfsSensorRegex(unittest.TestCase):
- def setUp(self):
+class TestHdfsSensorRegex:
+ def setup_method(self, method):
self.hook = FakeHDFSHook
- self.log = logging.getLogger()
- self.log.setLevel(logging.DEBUG)
+
+ logger = logging.getLogger(__name__)
+ logger.setLevel(logging.DEBUG)
+ logger.debug("#" * 10)
+ logger.debug("Running test case: %s.%s", self.__class__.__name__,
method.__name__)
+ logger.debug("#" * 10)
Review Comment:
Same here. This seems to be a left-over and we should get rid of it as a
follow-up.
--
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]