ashb commented on a change in pull request #11189:
URL: https://github.com/apache/airflow/pull/11189#discussion_r505656191
##########
File path: tests/test_utils/asserts.py
##########
@@ -74,11 +77,16 @@ def assert_queries_count(expected_count, message_fmt=None):
yield None
count = sum(result.values())
- if expected_count != count:
- message_fmt = message_fmt or "The expected number of db queries is
{expected_count}. " \
- "The current number is
{current_count}.\n\n" \
- "Recorded query locations:"
- message = message_fmt.format(current_count=count,
expected_count=expected_count)
+ if count != expected_count:
+ message_fmt = (
+ message_fmt
+ or "The expected number of db queries is {expected_count}. "
+ "The current number is {current_count}.\n\n"
+ "Recorded query locations:"
Review comment:
Could you revert the changes to this file please (since this is now just
whitespace only in this file)
----------------------------------------------------------------
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]