Skip to content

Commit 0475120

Browse files
committed
refactor: align test style with repo conventions
- Flatten test classes into standalone functions (matching pinecone/qdrant pattern) - Assert full serialized dict structure in to_dict/from_dict tests - Use Mock(spec=...) for retriever tests instead of MagicMock+patch - Verify _embedding_retrieval call args match exactly - Add test_from_dict_no_filter_policy (backward compat) - Add test_init_is_lazy
1 parent b264a95 commit 0475120

3 files changed

Lines changed: 444 additions & 377 deletions

File tree

integrations/amazon_s3_vectors/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ ban-relative-imports = "parents"
147147

148148
[tool.ruff.lint.per-file-ignores]
149149
# Tests can use magic values, assertions, relative imports, and don't need type annotations
150-
"tests/**/*" = ["PLC0415", "PLR2004", "S101", "S110", "TID252", "D", "ANN"]
150+
"tests/**/*" = ["E501", "PLC0415", "PLR2004", "S101", "S110", "TID252", "D", "ANN"]
151151
# Examples can contain print statements and long lines
152152
"examples/**/*" = ["D", "T201", "E501"]
153153

0 commit comments

Comments
 (0)