helpers icon indicating copy to clipboard operation
helpers copied to clipboard

Unit test extract_notebook_images

Open gpsaggese opened this issue 9 months ago • 3 comments

Add unit test for https://github.com/causify-ai/tutorials/issues/57

We want to have a notebook that we process using our usual approach of hunitest.TestCase.

Let's test end-to-end. We want to check that the output is correct

gpsaggese avatar Mar 15 '25 21:03 gpsaggese

@gpsaggese testing the dockerized executable will build the container from scratch every time, wont it take a long time for the test to run then? How are we supposed to go about this? or just test the independent logic? (which i am not sure is applicable in this scenario)

Shaunak01 avatar Mar 20 '25 17:03 Shaunak01

Good question.

  1. Sometimes we can find almost built containers to build on top, rather than building from scratch
  2. If it's too slow to be a fast/slow tests, we can make those tests super-slow

gpsaggese avatar Mar 21 '25 15:03 gpsaggese

PR: https://github.com/causify-ai/helpers/pull/422

Shaunak01 avatar Mar 27 '25 21:03 Shaunak01