Skip to content

Commit adac971

Browse files
lint fixes
1 parent 224caea commit adac971

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

tests/integration_tests/test_sqlalchemy/test_ddl.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,10 +206,9 @@ def test_qbit_table(test_engine: Engine, test_db: str, test_table_engine: str, t
206206
table_cls('id'))
207207
table.create(conn)
208208

209-
# Verify table was created
210209
result = conn.execute(text("SHOW CREATE TABLE qbit_test"))
211210
create_sql = result.fetchone()[0]
212211
assert 'QBit(Float32, 8)' in create_sql
213212
assert 'QBit(Float32, 128)' in create_sql
214213

215-
conn.execute(text('DROP TABLE qbit_test'))
214+
conn.execute(text('DROP TABLE IF EXISTS qbit_test'))

tests/integration_tests/test_vector.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,6 @@
1111

1212
@pytest.fixture(autouse=True, scope="module")
1313
def module_setup_and_checks(test_client: Client, test_config: TestConfig):
14-
"""
15-
Performs all module-level setup:
16-
- Skips if in a cloud environment where experimental settings are locked.
17-
- Skips if the server version is too old for QBit types.
18-
"""
1914
if test_config.cloud:
2015
pytest.skip(
2116
"QBit type requires allow_experimental_qbit_type setting, but settings are locked in cloud, skipping tests.",
@@ -307,15 +302,15 @@ def test_qbit_all_zeros(test_client: Client, table_context: Callable):
307302
assert result.result_set[1][0] == pytest.approx([0.0, 0.0, 0.0, 0.0])
308303

309304

310-
def test_invalid_dimension(test_client: Client, table_context: Callable):
305+
def test_invalid_dimension(table_context: Callable):
311306
"""Try creating a column with a negative dimension."""
312307

313308
with pytest.raises(DatabaseError):
314309
with table_context("bad_dim", ["id Int32", "vec QBit(Float32, -8)"]):
315310
pass
316311

317312

318-
def test_invalid_element_type(test_client: Client, table_context: Callable):
313+
def test_invalid_element_type(table_context: Callable):
319314
"""Try creating a column with an invalid element type."""
320315

321316
with pytest.raises(DatabaseError):

0 commit comments

Comments
 (0)