def include_file(file_path: str, ignore_py: bool):
    """Returns whether the given file path should be considered a test file for this execution.

    file_path -- the path of the file in the tests path
    ignore_py -- whether files that in in .py should be considered a test file
    """
    return file_path.endswith(".test") or (file_path.endswith(".py") and not ignore_py)