Skip to content

Commit

Permalink
Removed image tests due to inconsistencies
Browse files Browse the repository at this point in the history
  • Loading branch information
CBROWN-ONS committed Aug 11, 2023
1 parent 91e0876 commit db41b7d
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions tests/gtfs/test_validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
from geopandas import GeoDataFrame
import numpy as np
from plotly.graph_objects import Figure as PlotlyFigure
import matplotlib.testing.compare as mpl_compare

# import matplotlib.testing.compare as mpl_compare

from transport_performance.gtfs.validation import (
GtfsInstance,
Expand Down Expand Up @@ -657,15 +658,17 @@ def test__plot_summary_on_pass(self, gtfs_fixture):
"data/interim/save_test.png"
), "Failed to save summary as a PNG"

# REMOVED
# REASON: Inconstistent between OS
# ensure matching PNGs have been generated
assert (
mpl_compare.compare_images(
here("tests/data/gtfs/plots/example_png_summary.png"),
os.path.join("data", "interim", "save_test.png"),
tol=15,
)
is None
), "Generated Image did not match test image"
# assert (
# mpl_compare.compare_images(
# here("tests/data/gtfs/plots/example_png_summary.png"),
# os.path.join("data", "interim", "save_test.png"),
# tol=15,
# )
# is None
# ), "Generated Image did not match test image"

def test__plot_route_summary_defences(self, gtfs_fixture):
"""Test the defences for the small wrapper plot_route_summary()."""
Expand Down

0 comments on commit db41b7d

Please sign in to comment.