diff --git a/qurator/dinglehopper/tests/test_integ_cli_valid_json.py b/qurator/dinglehopper/tests/test_integ_cli_valid_json.py index 9d52329..7b35bd7 100644 --- a/qurator/dinglehopper/tests/test_integ_cli_valid_json.py +++ b/qurator/dinglehopper/tests/test_integ_cli_valid_json.py @@ -10,7 +10,7 @@ from ..cli import process def test_cli_json(tmp_path): """Test that the cli/process() yields a loadable JSON report""" - with working_directory(str(tmp_path)): + with working_directory(tmp_path): with open("gt.txt", "w") as gtf: gtf.write("AAAAA") with open("ocr.txt", "w") as ocrf: @@ -30,7 +30,7 @@ def test_cli_json(tmp_path): def test_cli_json_cer_is_infinity(tmp_path): """Test that the cli/process() yields a loadable JSON report when CER == inf""" - with working_directory(str(tmp_path)): + with working_directory(tmp_path): with open("gt.txt", "w") as gtf: gtf.write("") # Empty to yield CER == inf with open("ocr.txt", "w") as ocrf: diff --git a/qurator/dinglehopper/tests/test_integ_ocrd_cli.py b/qurator/dinglehopper/tests/test_integ_ocrd_cli.py index 4ac5b55..8aff22d 100644 --- a/qurator/dinglehopper/tests/test_integ_ocrd_cli.py +++ b/qurator/dinglehopper/tests/test_integ_ocrd_cli.py @@ -22,10 +22,10 @@ def test_ocrd_cli(tmp_path): # Copy test workspace test_workspace_dir_source = Path(data_dir) / "actevedef_718448162" test_workspace_dir = tmp_path / "test_ocrd_cli" - shutil.copytree(str(test_workspace_dir_source), str(test_workspace_dir)) + shutil.copytree(test_workspace_dir_source, test_workspace_dir) # Run through the OCR-D interface - with working_directory(str(test_workspace_dir)): + with working_directory(test_workspace_dir): runner = CliRunner() args = [ "-m", diff --git a/qurator/dinglehopper/tests/test_ocr_files.py b/qurator/dinglehopper/tests/test_ocr_files.py index fb38c4a..57c3f4a 100644 --- a/qurator/dinglehopper/tests/test_ocr_files.py +++ b/qurator/dinglehopper/tests/test_ocr_files.py @@ -176,7 +176,7 @@ def test_text(): def test_plain(tmp_path): - with working_directory(str(tmp_path)): + with working_directory(tmp_path): with open("ocr.txt", "w") as ocrf: ocrf.write("AAAAB")