If you are going to drop the visual test (which I liked by the way as it's clear the data follows the coastline) you can remove all the associated imports that are now unused, i.e. matplotlib, cartopy and iris.quickplot. I'd suggest you also consider changing the test type from GraphicsTest to IrisTest.