diff --git a/tests/utils/data_extraction/unternehmensregister/extract_test.py b/tests/utils/data_extraction/unternehmensregister/extract_test.py index e7cbe47..136f256 100644 --- a/tests/utils/data_extraction/unternehmensregister/extract_test.py +++ b/tests/utils/data_extraction/unternehmensregister/extract_test.py @@ -16,7 +16,7 @@ def prepare_temporary_dir(directory: str, formats: list[str]) -> None: def test_rename_latest_file() -> None: import time - with TemporaryDirectory("-4711") as temp_dir: + with TemporaryDirectory(dir="./") as temp_dir: # Create some test files in the temporary directory test_file1 = os.path.join(temp_dir, "file1.xml") test_file2 = os.path.join(temp_dir, "file2.xml") @@ -62,7 +62,7 @@ def test_rename_latest_file() -> None: def test_get_num_files_default_pattern() -> None: - with TemporaryDirectory("-4712") as temp_dir: + with TemporaryDirectory(dir="./") as temp_dir: prepare_temporary_dir(temp_dir, ["xml", "xml", "xml"]) expected_result = 3 @@ -70,7 +70,7 @@ def test_get_num_files_default_pattern() -> None: def test_get_num_files_different_pattern() -> None: - with TemporaryDirectory("-4713") as temp_dir: + with TemporaryDirectory(dir="./") as temp_dir: prepare_temporary_dir(temp_dir, ["xml", "txt", "json"]) num_files = extract.get_num_files(temp_dir, "*.txt") @@ -78,6 +78,6 @@ def test_get_num_files_different_pattern() -> None: def test_wait_for_download_condition() -> None: - with TemporaryDirectory("-4714") as temp_dir: + with TemporaryDirectory(dir="./") as temp_dir: prepare_temporary_dir(temp_dir, ["xml", "txt"]) assert extract.wait_for_download_condition(temp_dir, 2) is False