def test_diff_and_patch_notebooks(any_nb_pair): "Test diff/patch on any pair of notebooks in the test suite." a, b = any_nb_pair assert patch_notebook(a, diff_notebooks(a, b)) == nbformat.from_dict(b)
def test_diff_and_patch_matching_notebooks(matching_nb_pairs): "Test diff/patch on pairs of notebooks with the same basename in the test suite." a, b = matching_nb_pairs assert patch_notebook(a, diff_notebooks(a, b)) == nbformat.from_dict(b)