tests/conftest.py
def similar_query(first_query: str, second_query: str, *args) -> bool:
    """
    True if all strings are the same after we remove all spaces,
    tabs, and newlines.
    """
    queries = (first_query, second_query, *args)
    if all(q is None for q in queries):
        return True

    single_lines = [re.sub("[ \t\n]", "", query) for query in queries]
    return all(query == single_lines[0] for query in single_lines[1:])

    True if all strings are the same after we remove all spaces,
    tabs, and newlines.
    
True if all strings are the same after we remove all spaces,
tabs, and newlines.
True if all strings are the same after we remove all spaces tabs and newlines .
def similar_query(first_query: str, second_query: str, *args) -> bool:
    queries = (first_query, second_query, *args)
    if all(q is None for q in queries):
        return True
    single_lines = [re.sub("[ \t\n]", "", query) for query in queries]
    return all(query == single_lines[0] for query in single_lines[1:])
def similar_query ( first_query : str , second_query : str , * args ) -> bool : queries = ( first_query , second_query , * args ) if all ( q is None for q in queries ) : return True single_lines = [ re . sub ( "[ \t\n]" , "" , query ) for query in queries ] return all ( query == single_lines [ 0 ] for query in single_lines [ 1 : ] )
True if all strings are the same after we remove all spaces,
tabs, and newlines.
True if all strings are the same after we remove all spaces tabs and newlines .
"""
    True if all strings are the same after we remove all spaces,
    tabs, and newlines.
    """
first_query
str
second_query
str