earthlab / matplotcheck

A python package for checking and testing matplotlib plots. We use this for autograding student assignments but there are many other potential use cases including package testing (for packages with plots)!
https://matplotcheck.readthedocs.io
BSD 3-Clause "New" or "Revised" License
18 stars 8 forks source link

title_contains fails when provided single string instead of list #53

Closed lwasser closed 4 years ago

lwasser commented 5 years ago

obj.assert_title_contains(["Stream discharge"]) if the text is not in a list, the assert "passes" when it should actually fail

  1. check that a list is passed and if it isn't, turn the string into a list