Add missing cryptography dependency for integration tests #631
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pre-review checklist
./docs/source/.Description
This PR fixes missing dependencies for integration tests that were causing import failures in the matrix test environment.
Root Cause Analysis
Investigation revealed that the
cryptographypackage was missing from the dev dependencies, causing the column encryption tests to fail. The other reported issues were either already resolved or false positives:scalespackage (which providesgreplin.scales) was already present in dev dependenciesmockimport was already fixed (code usesunittest.mockfrom the standard library)Changes Made
pyproject.toml:
cryptography>=42.0.4to the[dependency-groups].devsection to ensure column encryption tests can import required modulescryptographyversion in[project.optional-dependencies].clefrom>=35.0to>=42.0.4to address multiple security vulnerabilities (CVE fixes for Bleichenbacher timing oracle attack and NULL pointer dereference)Verification
✅ All problematic imports now work successfully:
from greplin import scales(via existingscalesdependency)from unittest.mock import patch(standard library, Python 3+)from cassandra.column_encryption.policies import AES256ColumnEncryptionPolicy(now works withcryptographyin dev deps)✅ All three test files compile without errors
✅ Code review completed
✅ Security scan passed with no vulnerabilities
The changes are minimal and surgical, addressing only the missing dependency issue without modifying any test code or other functionality.
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.