def test_bundle(): with tempfile.TemporaryDirectory() as fout: os = snaketools.OnSuccess() os.makefile_filename = fout + "/Makefile" os.cleanup_filename = fout + "/sequana_cleanup.py" os.add_makefile() os.create_recursive_cleanup()
def test_onsuccess(tmpdir): directory = tmpdir.mkdir("onsuccess") p1 = directory.join("Makefile") p2 = directory.join("cleanup.py") onsuc = snaketools.OnSuccess() onsuc.makefile_filename = p1 onsuc.makefile_cleanup = p2