made mongo test py27 and py36 compatible
@@ -167,7 +167,8 @@ def test_mongo_observer_resource_event(mongo_obs, sample_run):
mongo_obs.fs.exists.assert_any_call(filename=filename)
db_run = mongo_obs.runs.find_one()
- assert db_run['resources'] == [[filename, md5]]
+ # for some reason py27 returns this as tuples and py36 as lists
+ assert [tuple(r) for r in db_run['resources']] == [(filename, md5)]
def test_force_bson_encodable_doesnt_change_valid_document():
