prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  Adding tests for rapid inspection of visual elements
  **What would you like changed/added and why?**
  
  Quoting @jeromedockes  here, from https://github.com/nilearn/nilearn/pull/2191#issuecomment-546278888
  Since we are adding reports etc. we should add more meaningful inspection of generated plots and reports in the tests
  
  **What would be the benefit? Does the change make something easier to use?**
  
   I think CircleCI does all this but it takes way too long. Maybe a faster simpler test to quickly generate plots and reports to visually examine will be useful?
  
  </issue>
  <code>
  [start of nilearn/reporting/__init__.py]
  1 """Reporting code for nilearn.
  2 
  3 This module implements plotting functions useful to report analysis results.
  4 
  5 Author: Martin Perez-Guevara, Elvis Dohmatob, 2017
  6 """
  7 
  8 from nilearn.reporting.get_clusters_table import get_clusters_table
  9 from nilearn.reporting.glm_reporter import make_glm_report
  10 from nilearn.reporting.html_report import HTMLReport
  11 
  12 __all__ = [
  13     "HTMLReport",
  14     "get_clusters_table",
  15     "make_glm_report",
  16 ]
  17
  [end of nilearn/reporting/__init__.py]
  </code>
  
  I need you to solve this issue by generating a single patch file that I can apply directly to this repository using git apply. Please respond with a single patch file in the following format.
  <patch>
  diff --git a/file.py b/file.py
  --- a/file.py
  +++ b/file.py
  @@ -1,27 +1,35 @@
   def euclidean(a, b):
  -    while b:
  -        a, b = b, a % b
  -    return a
  +    if b == 0:
  +        return a
  +    return euclidean(b, a % b)
   
   
   def bresenham(x0, y0, x1, y1):
       points = []
       dx = abs(x1 - x0)
       dy = abs(y1 - y0)
  -    sx = 1 if x0 < x1 else -1
  -    sy = 1 if y0 < y1 else -1
  -    err = dx - dy
  +    x, y = x0, y0
  +    sx = -1 if x0 > x1 else 1
  +    sy = -1 if y0 > y1 else 1
   
  -    while True:
  -        points.append((x0, y0))
  -        if x0 == x1 and y0 == y1:
  -            break
  -        e2 = 2 * err
  -        if e2 > -dy:
  -            err -= dy
  -            x0 += sx
  -        if e2 < dx:
  -            err += dx
  -            y0 += sy
  +    if dx > dy:
  +        err = dx / 2.0
  +        while x != x1:
  +            points.append((x, y))
  +            err -= dy
  +            if err < 0:
  +                y += sy
  +                err += dx
  +            x += sx
  +    else:
  +        err = dy / 2.0
  +        while y != y1:
  +            points.append((x, y))
  +            err -= dx
  +            if err < 0:
  +                x += sx
  +                err += dy
  +            y += sy
  +
  +    points.append((x, y))
       return points
  
  </patch>
golden_diff: diff --git a/nilearn/reporting/__init__.py b/nilearn/reporting/__init__.py
  --- a/nilearn/reporting/__init__.py
  +++ b/nilearn/reporting/__init__.py
  @@ -1,10 +1,10 @@
   """Reporting code for nilearn.
   
   This module implements plotting functions useful to report analysis results.
  -
  -Author: Martin Perez-Guevara, Elvis Dohmatob, 2017
   """
   
  +# Author: Martin Perez-Guevara, Elvis Dohmatob, 2017
  +
   from nilearn.reporting.get_clusters_table import get_clusters_table
   from nilearn.reporting.glm_reporter import make_glm_report
   from nilearn.reporting.html_report import HTMLReport
  
verification_info: {"golden_diff": "diff --git a/nilearn/reporting/__init__.py b/nilearn/reporting/__init__.py\n--- a/nilearn/reporting/__init__.py\n+++ b/nilearn/reporting/__init__.py\n@@ -1,10 +1,10 @@\n \"\"\"Reporting code for nilearn.\n \n This module implements plotting functions useful to report analysis results.\n-\n-Author: Martin Perez-Guevara, Elvis Dohmatob, 2017\n \"\"\"\n \n+# Author: Martin Perez-Guevara, Elvis Dohmatob, 2017\n+\n from nilearn.reporting.get_clusters_table import get_clusters_table\n from nilearn.reporting.glm_reporter import make_glm_report\n from nilearn.reporting.html_report import HTMLReport\n", "issue": "Adding tests for rapid inspection of visual elements\n**What would you like changed/added and why?**\r\n\r\nQuoting @jeromedockes  here, from https://github.com/nilearn/nilearn/pull/2191#issuecomment-546278888\r\nSince we are adding reports etc. we should add more meaningful inspection of generated plots and reports in the tests\r\n\r\n**What would be the benefit? Does the change make something easier to use?**\r\n\r\n I think CircleCI does all this but it takes way too long. Maybe a faster simpler test to quickly generate plots and reports to visually examine will be useful?\n", "before_files": [{"content": "\"\"\"Reporting code for nilearn.\n\nThis module implements plotting functions useful to report analysis results.\n\nAuthor: Martin Perez-Guevara, Elvis Dohmatob, 2017\n\"\"\"\n\nfrom nilearn.reporting.get_clusters_table import get_clusters_table\nfrom nilearn.reporting.glm_reporter import make_glm_report\nfrom nilearn.reporting.html_report import HTMLReport\n\n__all__ = [\n    \"HTMLReport\",\n    \"get_clusters_table\",\n    \"make_glm_report\",\n]\n", "path": "nilearn/reporting/__init__.py"}]}