Skip to content

Commit c8ae149

Browse files
committed
style(tests,build): use module-level pytest import; gitignore embedded .so
- tests/integration/test_sdk.py: drop redundant `import pytest as _pytest`, use the top-level pytest import. - coordinode-embedded/.gitignore: add `*.so` so locally built Rust extension modules don't get committed with platform suffix.
1 parent d53ee73 commit c8ae149

2 files changed

Lines changed: 5 additions & 6 deletions

File tree

coordinode-embedded/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
target/
22
Cargo.lock
3+
*.so

tests/integration/test_sdk.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -720,13 +720,11 @@ def test_cypher_accepts_consistency_kwargs(client):
720720

721721
def test_cypher_rejects_invalid_consistency_values(client):
722722
"""Invalid consistency kwargs raise ValueError before the RPC."""
723-
import pytest as _pytest
724-
725-
with _pytest.raises(ValueError, match="invalid read_concern"):
723+
with pytest.raises(ValueError, match="invalid read_concern"):
726724
client.cypher("RETURN 1", read_concern="strong")
727-
with _pytest.raises(ValueError, match="invalid write_concern"):
725+
with pytest.raises(ValueError, match="invalid write_concern"):
728726
client.cypher("RETURN 1", write_concern="w9")
729-
with _pytest.raises(ValueError, match="invalid read_preference"):
727+
with pytest.raises(ValueError, match="invalid read_preference"):
730728
client.cypher("RETURN 1", read_preference="leader")
731-
with _pytest.raises(ValueError, match="after_index must be a non-negative integer"):
729+
with pytest.raises(ValueError, match="after_index must be a non-negative integer"):
732730
client.cypher("RETURN 1", after_index=-1)

0 commit comments

Comments
 (0)