Apply automatic linting fixes to tests directory

Co-Authored-By: Joe Moura <joao@crewai.com>
This commit is contained in:
Devin AI
2025-05-12 13:31:07 +00:00
parent ad1ea46bbb
commit 46621113af
62 changed files with 1738 additions and 1821 deletions

View File

@@ -19,8 +19,9 @@ def setup_test_environment():
# Validate that the directory was created successfully
if not storage_dir.exists() or not storage_dir.is_dir():
msg = f"Failed to create test storage directory: {storage_dir}"
raise RuntimeError(
f"Failed to create test storage directory: {storage_dir}"
msg,
)
# Verify directory permissions
@@ -29,9 +30,10 @@ def setup_test_environment():
test_file = storage_dir / ".permissions_test"
test_file.touch()
test_file.unlink()
except (OSError, IOError) as e:
except OSError as e:
msg = f"Test storage directory {storage_dir} is not writable: {e}"
raise RuntimeError(
f"Test storage directory {storage_dir} is not writable: {e}"
msg,
)
# Set environment variable to point to the test storage directory