We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e51e629 commit dcc4b8dCopy full SHA for dcc4b8d
1 file changed
tests/test_query.py
@@ -340,9 +340,10 @@ def test_set_parameter_alias():
340
assert query.count() == 2
341
342
# 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()
+ query = box.query(
+ str_prop.equals("Foo").alias("str condition")
+ .and_(int32_prop.greater_than(700).alias("int32 condition"))
346
+ ).build()
347
348
assert query.count() == 1
349
assert query.find()[0].str == "Foo"
0 commit comments