for value in values:
self._dg.progress(value)
element = self._report_queue._queue[-1].delta.new_element
self.assertEqual(element.exception.type, "ValueError")
self._dg.progress("some string")
element = self._report_queue._queue[-1].delta.new_element
self.assertEqual(element.exception.type, "TypeError")
After Change
for value in values:
st.progress(value)
element = self.get_delta_from_queue().new_element
self.assertEqual(element.exception.type, "ValueError")
st.progress("some string")
element = self.get_delta_from_queue().new_element
self.assertEqual(element.exception.type, "TypeError")
class DeltaGeneratorChartTest(util.DeltaGeneratorTestCase):