Skip to content

Conversation

@cbornet
Copy link
Collaborator

@cbornet cbornet commented Sep 30, 2024

Fix #83

@cbornet cbornet changed the title Remove some rules escapes Remove some noqa: ARG rules escapes Sep 30, 2024
def test_astradb_vectorstore_vectorize_headers_precedence_stringheader(
self,
astra_db_credentials: AstraDBCredentials,
collection_vz: Collection, # noqa: ARG002
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Injecting collection_vz had no use here ?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, I think you spotted a bug in testing (both here and in the subsequent test_astradb_vectorstore_vectorize_headers_precedence_headerprovider). Well done!

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pushed a fix.

Copy link
Collaborator

@hemidactylus hemidactylus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for cleaning the noqas and also replacing the constants with <collection>.name !

@hemidactylus hemidactylus merged commit fc1bc6c into main Sep 30, 2024
13 checks passed
@hemidactylus hemidactylus deleted the fix-ruff-arg branch September 30, 2024 13:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use pytest.mark.usefixtures

3 participants