def test_country_name_overflow_error(session, country_data):
"""Country 003: Verify error if country name exceeds field length."""
too_long_country = Countries(**country_data['overflow'])
with pytest.raises(DataError):
session.add(too_long_country)
session.commit()
评论列表
文章目录