ashb commented on a change in pull request #12308:
URL: https://github.com/apache/airflow/pull/12308#discussion_r522459921
##########
File path: tests/plugins/test_plugins_manager.py
##########
@@ -119,10 +120,13 @@ class TestPropertyHook(BaseHook):
plugins_manager.ensure_plugins_loaded()
- self.assertIn('AirflowTestPropertyPlugin',
str(plugins_manager.plugins))
- self.assertIn("TestPropertyHook",
str(plugins_manager.registered_hooks))
+ assert 'AirflowTestPropertyPlugin' in str(plugins_manager.plugins)
+ assert 'TestPropertyHook' in str(plugins_manager.registered_hooks)
- def test_should_warning_about_incompatible_plugins(self):
+ assert caplog.records[0].levelname == 'INFO'
+ assert caplog.records[0].msg == 'Loading %d plugin(s) took %.2f
seconds'
Review comment:
his is the un-formatted message string
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]