Skip to content

Refactor of tutorial tests

Shriwise, Patrick requested to merge tutorial_test_refactor into development

This PR makes a few adjustments to how the ABTR tutorials are run in test_pyarc_run_tutorial.py. All of these tests now rely on a common function, run_ABTR_test, which takes a few parameters that are unique to each of the samples. My primary motivation here was to avoid a lot of duplicated code as we move forward in adding these tests and their corresponding examples. Even for the two samples present here we save ~50 lines by adding this common function.

One main change in behavior here is that the run_ABTR_test function determines the directory of the specified input file and creates a temporary directory where the inputs are copied and the test is run, which makes cleanup from the test much easier.

Edited by Shriwise, Patrick

Merge request reports