Skip to content

Commit dcc4b8d

Browse files
loryrutadan-obx
authored andcommitted
query_condition: use new and conditions for unit test #39
1 parent e51e629 commit dcc4b8d

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

tests/test_query.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -340,9 +340,10 @@ def test_set_parameter_alias():
340340
assert query.count() == 2
341341

342342
# Test set parameter alias on string/int32
343-
qb = box.query(str_prop.equals("Foo").alias("str condition"))
344-
int32_prop.greater_than(700).alias("int32 condition").apply(qb)
345-
query = qb.build()
343+
query = box.query(
344+
str_prop.equals("Foo").alias("str condition")
345+
.and_(int32_prop.greater_than(700).alias("int32 condition"))
346+
).build()
346347

347348
assert query.count() == 1
348349
assert query.find()[0].str == "Foo"

0 commit comments

Comments
 (0)