@@ -29,7 +29,7 @@ class TestConvertPDF:
2929 def test_to_pdf (self , request , filename , use , execute , no_input ):
3030 document_name = tname_to_filename (request .node .name )
3131 convert (
32- filename , to = "pdf" , use = use , execute = execute , document_name = document_name , no_input = no_input
32+ filename , to = "pdf" , use = use , execute = execute , document_name = document_name , no_input = no_input , output_dir = "tests/test_output"
3333 )
3434
3535
@@ -39,7 +39,7 @@ def test_to_pdf(self, request, filename, use, execute, no_input):
3939class TestConvertMD :
4040 def test_to_md (self , request , filename , execute , no_input ):
4141 document_name = tname_to_filename (request .node .name )
42- convert (filename , to = "md" , execute = execute , document_name = document_name , no_input = no_input )
42+ convert (filename , to = "md" , execute = execute , document_name = document_name , no_input = no_input , output_dir = "tests/test_output" )
4343
4444
4545class TestConvertOther :
@@ -53,18 +53,7 @@ def test_save_notebook(self):
5353 save_notebook = True ,
5454 execute = True ,
5555 document_name = document_name ,
56- )
57-
58- def test_output_dir (self ):
59- filename = "tests/notebooks/Short.ipynb"
60- to = "pdf"
61- document_name = Path (filename ).stem + " output_dir NEW NAME"
62- convert (
63- filename ,
64- to = to ,
65- execute = True ,
66- output_dir = "tests/test_output" ,
67- document_name = document_name ,
56+ output_dir = "tests/test_output"
6857 )
6958
7059 def test_matplotlib (self ):
@@ -77,4 +66,5 @@ def test_matplotlib(self):
7766 execute = True ,
7867 document_name = document_name ,
7968 table_conversion = "matplotlib" ,
69+ output_dir = "tests/test_output"
8070 )
0 commit comments