Skip to content

Commit

Permalink
remove test folders properly
Browse files Browse the repository at this point in the history
  • Loading branch information
marph91 committed Jan 14, 2025
1 parent da3bbf4 commit 4aa85aa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/data
Submodule data updated 16 files
+0 −3 reference_data/default_format/multiple_files 0/plaintext_1.md
+0 −3 reference_data/default_format/multiple_files 1/plaintext_1.md
+0 −4,637 reference_data/default_format/multiple_folders 0/arbitrary_folder/Big-Fish_1.md
+0 −12 ...nce_data/default_format/multiple_folders 0/arbitrary_folder/nested_arbitrary_folder/LibreOffice Writer_1.md
+0 −15 reference_data/default_format/multiple_folders 0/arbitrary_folder/nested_arbitrary_folder/asciidoc_1.md
+0 −1 ...nce_data/default_format/multiple_folders 0/arbitrary_folder/nested_arbitrary_folder/second_sample_file_1.md
+0 −3 reference_data/default_format/multiple_folders 0/arbitrary_folder/plaintext_1.md
+0 −47 reference_data/default_format/multiple_folders 0/arbitrary_folder/sample_1.md
+0 −4 reference_data/default_format/multiple_folders 0/arbitrary_folder/test_1.md
+0 −4,637 reference_data/default_format/multiple_folders 1/arbitrary_folder/Big-Fish_1.md
+0 −12 ...nce_data/default_format/multiple_folders 1/arbitrary_folder/nested_arbitrary_folder/LibreOffice Writer_1.md
+0 −15 reference_data/default_format/multiple_folders 1/arbitrary_folder/nested_arbitrary_folder/asciidoc_1.md
+0 −1 ...nce_data/default_format/multiple_folders 1/arbitrary_folder/nested_arbitrary_folder/second_sample_file_1.md
+0 −3 reference_data/default_format/multiple_folders 1/arbitrary_folder/plaintext_1.md
+0 −47 reference_data/default_format/multiple_folders 1/arbitrary_folder/sample_1.md
+0 −4 reference_data/default_format/multiple_folders 1/arbitrary_folder/test_1.md
4 changes: 3 additions & 1 deletion test/test_convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,9 @@ def test_default_format(self, test_name, test_input):
test_data = [Path("test/data/test_data") / i for i in test_input]

test_data_output = Path("tmp_output/default_format") / test_name
shutil.rmtree(test_data_output, ignore_errors=True)
# Can be multiple output folders. Delete all.
for folder in test_data_output.parent.glob(f"{test_data_output.name}*"):
shutil.rmtree(folder, ignore_errors=True)
# separate folder for each input
reference_data = Path("test/data/reference_data/default_format") / test_name

Expand Down

0 comments on commit 4aa85aa

Please sign in to comment.