def test_ascendancy_repr_no_id(): a = Session().query(Ascendancy).first() a.id = None template = '<Path of Exile Ascendancy: %s>' % (str(a)) assert a.__repr__() == template
def test_class_repr_no_id(): c = Session().query(PoEClass).first() c.id = None template = '<Path of Exile Class: %s>' % (str(c)) assert c.__repr__() == template